Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Lines 836 to 883 on /initrd/init (tharpup - puppylinux) - https://www.pearltrees.com/s243a/initrd-init/id19535893/item224278321
- #Lines 896 to 944 of https://github.com/puppylinux-woof-CE/woof-CE/blob/c96d661c2232caef1d69c693de673fb0e54796f8/initrd-progs/0initrd/init#L896 (13 Mar 2018)
- #pmedia= usbflash|usbhd|usbcd|ataflash|atahd|atacd|atazip|scsihd|scsicd|cd
- [ $pmedia ] && PMEDIA=$pmedia #boot parameter, broad category of boot media. ex: cd.
- [ $psubdir ] && PSUBDIR=$psubdir #boot parameter, directory for puppy files. ex: puppy220
- [ $psavemark ] && PSAVEMARK=$psavemark #100913 partition number that has/will-have save-file.
- [ $PSUBDIR ] && [ "${PSUBDIR:0:1}" != "/" ] && PSUBDIR="/${PSUBDIR}" #add leading /.
- [ $pdev1 ] && PDRV=$pdev1 #boot parameter, partition have booted off. ex: hda3
- #100915 requested by technosaurus (formats get changed further down)...
- [ $pdrv ] && PDRV=$pdrv #format partition:<path><filename> ex: sda2:/slacko/puppy_slacko_6.3.0.sfs
- [ $pupsfs ] && PDRV=$pupsfs
- [ $zdrv ] && ZDRV=$zdrv #ex: sda2:/slacko/zdrv_slacko_6.3.0.sfs
- [ $fdrv ] && FDRV=$fdrv
- [ $adrv ] && ADRV=$adrv
- [ $ydrv ] && YDRV=$ydrv
- #<partition>:<filename>, for savefile/savefolder. <partition> can be a name or Label or UUID
- [ $psave ] && PSAVE=$psave #ex: sdb4:/puppy/tahr/tahrsave or smark or 49baa82d-8c69:tahrsave
- #list of kernel modules to load, ex: pimod=hid-logitech-dj.ko,kernel/drivers/hid/hid-multitouch.ko
- [ $pimod ] && PIMOD=$pimod
- #specify partition for Underdog Linux (refer also underdog.lnx).
- [ $underdog ] && UNDERDOG=$underdog
- #[ $pdebug ] && PDEBUG=$pdebug
- PDEBUG=1
- TOTAL_SIZEK_SFS_RAM=0
- # show menu with pupsaves
- [ $psavemenu ] && PSAVEMENU=$psavemenu
- RDSH=""
- if [ "$pfix" ];then
- for ONEFIX in $(echo -n "$pfix" | tr ',' ' ')
- do
- case $ONEFIX in
- ram) PRAMONLY="yes";; #run in ram only (do not load ${DISTRO_FILE_PREFIX}save).
- rdsh) RDSH="yes";; #exit to shell in initial ramdisk.
- nox) PNOX="yes";; #do not start X.
- clean) PCLEAN="yes";; #force version upgrade and cleanup.
- trim) PTRIM="yes";; #add "discard" to mount options if SSD
- copy) PCOPY="yes";; #copy .sfs files into ram.
- nocopy) PNOCOPY="yes";; #do not copy .sfs files into ram (default is copy if enough ram).
- fsck) PFSCK="yes";; #do a fsck of ${DISTRO_FILE_PREFIX}save file.
- fsckp) PFSCKP="yes";; #do fsck before first mount of ext partitions
- [0-9]*) PIGNORELAST=$ONEFIX;; #blacklist last $ONEFIX folders (multisession).
- psavebkp)PSAVEBKP='yes';; #don't ignore pupsaves created by Pupsave Backup
- *) echo "pfix=$ONEFIX is not a known boot parameter";;
- esac
- done
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement