#cd /scratchbox
#mksquashfs . /scratchbox.squashfs -b 65536
#mkdir scratchbox.base
//only for test,this is base layer and squashfs only support read mode
#mount -t squashfs -oloop scratchbox.squashfs scratchbox.base/
#mkdir scratchbox.changes
#mkdir scratchbox
#mount -t aufs -o dirs=scratchbox.changes/=rw:scratchbox.base/=rr aufs /scratchbox
//if you want to automount while bootup linux,then you need to edit /etc/fstab
------------------------------------------------------------------------------
mount squashfs
And, make sure you are root
#mount -t squashfs -o loop /scratchbox.squashfs /scratchbox.base/
#mount -t aufs -o dirs=/scratchbox.changes/=rw:/scratchbox.base/=rr aufs /scratchbox
沒有留言:
張貼留言