SFS file issues / concerns (Not-Quite Solved...yet)
Code: Select all
echo "Remove added modules"
ls -1 /initrd | grep -E '.sfs|.lzm' | while read I ; do
busybox mount -t aufs -o remount,del:/initrd/$I unionfs /
busybox umount /initrd/$I
done
Not sure if this would help your problem as I do this to ensure a clean shutdown if running in ram but sfs are mounted from the hard drive due to limited space (in ram)
mike
I do recognize the unexplainable fluctuations in free space when installing or uninstalling. Sometimes, uninstalling a small package with the Puppy Package manager suddenly yields a lot more free space than I would expect to receive.
But I do not recall spectacular unexplainable differences where it concerns SFS files.
I do have to say, I do not use SFS-Load (on the fly) at all. I strictly load or unload SFS files through the Bootmanager SFS loader. This does mean I have to reboot every time I load or unload an SFS, but I am not bothered by that.
My pup save file is 504 MB, of which 251 mb is free. But I have Firefox, Inkscape, LibreOffice, Gimp, NVidea drivers and a nice game all loaded as SFS files. By exchanging SFS files in the Bootmanager, I can choose to load devx, java, Blender, Avidemux, Wine, or other games.
Oh I like SFS files a lot!
But I do not recall spectacular unexplainable differences where it concerns SFS files.
I do have to say, I do not use SFS-Load (on the fly) at all. I strictly load or unload SFS files through the Bootmanager SFS loader. This does mean I have to reboot every time I load or unload an SFS, but I am not bothered by that.
My pup save file is 504 MB, of which 251 mb is free. But I have Firefox, Inkscape, LibreOffice, Gimp, NVidea drivers and a nice game all loaded as SFS files. By exchanging SFS files in the Bootmanager, I can choose to load devx, java, Blender, Avidemux, Wine, or other games.
Oh I like SFS files a lot!
Sfs files are likable.... having no limits is nice...each machine has its own set of apps to load at boot (but by filename...no boot manager) and a stock of others to load on demand. Typically there are 10-20 loaded. Also means the core pup contains core libraries and yer basic tools and a browser....handy for quick boot/fix stuff.
I also find it the cleanest way to test a new application or compile since the system is left as was after wards (or should be...hence the topic here.)
Ok people...here is my sfs loader
usage is activate /path/to/file.sfs
or add the script to rox's right click menu.
it toggles load or unload...same script.
Try it and see if you still get this strange behaviour.
mike
I also find it the cleanest way to test a new application or compile since the system is left as was after wards (or should be...hence the topic here.)
Ok people...here is my sfs loader
usage is activate /path/to/file.sfs
or add the script to rox's right click menu.
it toggles load or unload...same script.
Try it and see if you still get this strange behaviour.
mike
- Attachments
-
- activate.tar.gz
- (1.18 KiB) Downloaded 135 times
Mike, your code has this line :mikeb wrote:
Ok people...here is my sfs loader
mike
Code: Select all
RAMSIZE=`free | grep "Total:"| tr -s " " | cut -f 2 -d " "`
Code: Select all
bash-3.00# free
total used free shared buffers
Mem: 3972280 915184 3057096 0 181408
-/+ buffers: 733776 3238504
Swap: 23366352 0 23366352
#110405 fix 'free' applet output format different in later versions of busybox.
Barry's code in pup_event_frontend_d does it like this :
Code: Select all
free_initrd_func() { #UniPup, runs entirely in initramfs.
#110405 fix for later versions busybox...
memFREEK=`free | grep -o 'Mem: .*' | tr -s ' ' | cut -f 4 -d ' '`
swapFREEK=`free | grep -o 'Swap: .*' | tr -s ' ' | cut -f 4 -d ' '`
SIZEFREEK=`expr $memFREEK + $swapFREEK`
SIZEFREEM=`expr $SIZEFREEK \/ 1024`