wok-stable diff slitaz-loram-cdrom/stuff/loram.rootfs @ rev 370
Slitaz-loram*: more flexible
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Mar 08 11:30:12 2008 +0000 (2008-03-08) |
parents | 3a5e92c048e0 |
children | 80bb089358ea |
line diff
1.1 --- a/slitaz-loram-cdrom/stuff/loram.rootfs Sat Mar 01 12:55:33 2008 +0000 1.2 +++ b/slitaz-loram-cdrom/stuff/loram.rootfs Sat Mar 08 11:30:12 2008 +0000 1.3 @@ -16,14 +16,32 @@ 1.4 ln -s /usr/.moved$ii .$ii 1.5 done 1.6 echo "$(du -hs /usr/.moved | cut -f1) have been moved into /usr" 1.7 -if [ -x usr/sbin/mksquashfs ]; then 1.8 +usr=usr 1.9 +if [ -x bin/funionfs ]; then 1.10 + usr=.usr.ro 1.11 + mkdir .usr.ro .usr.rw 1.12 + ln -s /.usr.ro/lib/$(cd usr/lib ; ls libfuse.so.2.*) lib/libfuse.so.2 1.13 +fi 1.14 +if [ -x usr/bin/mkcromfs ]; then 1.15 + usr/bin/mkcromfs -qq -f 262144 -b 16384 usr ../rootcd/usr.cromfs 1.16 + rm -rf usr 1.17 + mkdir usr 1.18 + for ii in unmkcromfs cromfs-driver ; do 1.19 + mv bin/$ii ../rootcd 1.20 + ln -s /cdrom/$ii bin/$ii 1.21 + done 1.22 +elif [ -x usr/sbin/mksquashfs ]; then 1.23 usr/sbin/mksquashfs usr ../rootcd/usr.sqfs 1.24 rm -rf usr 1.25 mkdir usr 1.26 else 1.27 mv usr ../rootcd 1.28 - ln -s /cdrom/usr usr 1.29 + [ "$usr" = "usr" ] || rmdir $usr 1.30 + ln -s /cdrom/usr $usr 1.31 ln -s /bin ../rootcd/bin 1.32 fi 1.33 +for ii in bin/vcsa2txt bin/script bin/cut bin/readlink ; do 1.34 + ln -s busybox $ii 1.35 +done 1.36 mkdir cdrom 1.37 COMPRESSION="gzip"