wok-next diff slitaz-loram/stuff/loram.rootfs @ rev 389
Slitaz-loram: support both cromfs and squashfs
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Mar 09 12:58:23 2008 +0000 (2008-03-09) |
parents | c570ed86d31a |
children | c4e6b92f665f |
line diff
1.1 --- a/slitaz-loram/stuff/loram.rootfs Sat Mar 08 01:10:18 2008 +0000 1.2 +++ b/slitaz-loram/stuff/loram.rootfs Sun Mar 09 12:58:23 2008 +0000 1.3 @@ -1,7 +1,8 @@ 1.4 echo "$(du -hs ./usr | cut -f1) were used by /usr" 1.5 for ii in /sbin /lib /bin; do 1.6 mkdir -p ./usr/.moved$ii 1.7 - for j in e2fsprogs pcmciautils cpio syslinux-extra isapnptools ncurses; do 1.8 + for j in e2fsprogs pcmciautils cpio syslinux-extra isapnptools ncurses \ 1.9 + libcap; do 1.10 for k in $(grep ^$ii ./var/lib/tazpkg/installed/$j/files.list) ; do 1.11 [ -f .$k ] || continue 1.12 mv .$k ./usr/.moved$k 1.13 @@ -17,7 +18,11 @@ 1.14 done 1.15 echo "$(du -hs ./usr/.moved | cut -f1) have been moved into /usr" 1.16 echo "$(du -hs ./usr | cut -f1) were used by /usr before compression" 1.17 -usr/bin/mkcromfs -qq -f 262144 -b 16384 usr .usr.cromfs 1.18 +if [ -x usr/bin/mkcromfs ]; then 1.19 + usr/bin/mkcromfs -qq -f 262144 -b 16384 usr .usr.cromfs 1.20 +else 1.21 + usr/sbin/mksquashfs usr .usr.sqfs 1.22 +fi 1.23 if [ -x bin/funionfs ]; then 1.24 mkdir .usr.ro .usr.rw 1.25 ln -s /.usr.ro/lib/$(cd usr/lib ; ls libfuse.so.2.*) lib/libfuse.so.2 1.26 @@ -25,4 +30,4 @@ 1.27 rm -rf usr 1.28 mkdir usr 1.29 COMPRESSION="none" 1.30 -echo "$(du -hs ./.usr.cromfs | cut -f1) are used by /usr after compression" 1.31 +echo "$(du -hs ./.usr.*fs | cut -f1) are used by /usr after compression"