A small note : due to
cat /proc/cmdline
pmedia=hd psubdir=slacko-5.3
I got me an /etc/rc.d/PUPSTATE file as
Code:
PUPMODE=5
PDEV1=''
DEV1FS=''
PUPSFS='sda1,ext3,/slacko-5.3/puppy_slacko_5.3.sfs'
PUPSAVE=''
PMEDIA='hd'
#ATADRIVES is all internal ide/pata/sata drives, excluding optical, excluding usb...
ATADRIVES='sda '
#ATAOPTICALDRIVES is list of non-usb optical drives...
ATAOPTICALDRIVES=''
#these directories are unionfs/aufs layers in /initrd...
SAVE_LAYER=''
PUP_LAYER='/pup_ro2'
#The partition that has the slackosave file is mounted here...
PUP_HOME=''
#(in /initrd) ...note, /mnt/home is a link to it.
#this file has extra kernel drivers and firmware...
ZDRV=''
#complete set of modules in the initrd (moved to main f.s.)...
ZDRVINIT='no'
#Partition no. override on boot drive to which session is (or will be) saved...
PSAVEMARK=''
This led to some incorrect behavior of
/usr/sbin/shutdownconfig
Have workaround as
Quote:
if [ "$PSAVEMARK" != "" ];then #see /etc/rc.d/PUPSTATE
devnameonly="`echo -n "$PDEV1" | sed -e 's/[0-9]*$//'`"
SAVEPART="${devnameonly}${PSAVEMARK}" #partition that will-have ${DISTRO_FILE_PREFIX}save.
spPATTERN='/dev/'"$SAVEPART"'|'
SAVEFS="`probepart -m | grep "$spPATTERN" | cut -f 2 -d '|'`"
SAVEFILE="$PSUBDIR/${DISTRO_FILE_PREFIX}save.2fs"
PUPSAVE="$SAVEPART,$SAVEFS,$SAVEFILE"
[ "$PDEV1" -a "$devnameonly" -a "$SAVEPART" -a "$SAVEFS" ] && return 0
fi
if [ "$PCHOOSE" != "yes" ];then
SAVEFS="$DEV1FS"
SAVEPART="$PDEV1"
SAVEFILE="$PSUBDIR/${DISTRO_FILE_PREFIX}save.2fs"
PUPSAVE="$PDEV1,$DEV1FS,$SAVEFILE"
echo "SAVEFS=$SAVEFS' SAVEPART=$SAVEPART' SAVEFILE=$SAVEFILE' PUPSAVE=$PUPSAVE'"
[ "$SAVEFS" -a "$SAVEPART" -a "$SAVEFILE" -a "$PUPSAVE" ] && return 0
fi
|
Am not testing due too little bandwidth, but looking into wary-5.5's shutdownconfig, that part is same .
Best regards.