Problem:
if you look at the "find" code, (in Slacko line 520)
Code: Select all
[ "$FND_PUPSAVES" = "" ] && FND_PUPSAVES="`find /mnt/data -maxdepth 1 -xdev -type f -iname ${DISTRO_FILE_PREFIX}save*.[234]fs | grep -v ' ' | sed -e 's%^/mnt/data%%' | tr '\n' ' '`"
I did a fresh frugal install of Slacko in a psubdir on an ext3 partition.
I rebooted a couple of times to ensure that the save file was stable and working.
Using a different puppy on the same machine, I moved the save file from the psubdir to the root of the partition, and rebooted into my test Slako.
Lo, the save file was not used, it booted into pupmode 5.
On investigation I found that the save file had been found by the "find" code, as it was in "/initrd/tmp/PUPSAVES-complete". But it appears to have been discarded by the following code, (line 907 in Slacko 5.7)
Code: Select all
grep "${PSUBDIR}/" /tmp/PUPSAVES > /tmp/PUPSAVES2 #note: need this as above probing may have got some invalid hits.
Possible fixes:
1) Remove the apparently useless "find" code.
2) Remove the code that discards perfectly good save files.
3) Fix the discarding code so that it doesn't throw away good stuff.
1) and 2) look quite doable.
3) I've no idea, because I don't know what bad stuff it's trying to discard.
gyro