Revision [8830]
This is an old revision of sfs made by coolpup on 2010-08-19 09:41:42.
An overview: http://tree.celinuxforum.org/CelfPubWiki/ELCEurope2008Presentations?action=AttachFile&do=get&target=squashfs-elce.pdf
What is a sfs file?
http://puppeee.com/web/blog/sfs-files-get-em-while-theyre-hotLists of sfs software package files
http://puppeee.com/files/sfs/http://puppylinux.org/wikka/LucidPuppySFS
How to make a sfs file of a software package
Copy or move all of directories and files that make up the software package into any single directory . Then issue the mksquashfs command.Usage:
# mksquashfs SYNTAX:mksquashfs source1 source2 ... dest [options] [-e list of exclude dirs/files]
e.g.
mksquashfs directoryname softwarepackagename.sfs
Verify the currently installed version with:
mksquashfs -version
Compatibility chart
References
http://www.linux-mag.com/id/7357http://tldp.org/HOWTO/SquashFS-HOWTO
EditSFS Pup
Advantages of Squash file compression
http://www.murga-linux.com/puppy/viewtopic.php?p=43866&highlight=mksquashfs#43866
http://www.murga-linux.com/puppy/viewtopic.php?p=439180#439180
http://www.murga-linux.com/puppy/viewtopic.php?t=35390
Appendix
This information is valid for puppy 1.0.7 and later puppy 1.0.* versions only. union structure is going to change in puppy2Presently puppy supports .sfs files to be mounted on union /usr.
Suppose I have got some PackageX running and want to make a .sfs out of it. I would copy all the necessary files for packagex to /my-docments/packagex. inside the folder packagex there would be the following folders
/bin - containing the binaries
/lib - dependencies
/share - shared data
..
if the package you have compiled installs to /usr/local then packagex folder would contain
/local/bin
/local/lib
/local/share
..
to make a .sfs out of this execute the following command in the terminal
Code:
mksquashfs /root/my-documents/packagex /mnt/hda1/usr_packagex.sfs
/mnt/hda1 to be replaced by where ever you want this .sfs file to be created.
pre-1.0.7 users can use it by renaming it to usr_more.sfs
1.0.7 users can do the following
edit your rc.local to add the following lines
Code:
echo "Making more loop devices..."
mknod /dev/loop5 b: 7 5
mknod /dev/loop6 b: 7 6
mknod /dev/loop7 b: 7 7
if [ ! "`ls /mnt/home/usr_packagex.sfs 2> /dev/null`" = "" ];then
mkdir /.usr_packagex
echo "Mounting /mnt/home/usr_packagex.sfs file on /.usr_packagex..."
losetup-FULL /dev/loop5 /mnt/home/usr_packagex.sfs
mount -r -t squashfs -o noatime /dev/loop5 /.usr_packagex
unionctl /usr --add --after /root/.usr --mode ro /.usr_packagex
fi
if you are multiple .sfs files the increase then use the next /dev/loop that is empty i.e. the next usr*.sfs will go in /dev/loop6. If you run out of loops make new ones using mknod command as show above.