wok annotate slitaz-loram-cdrom/stuff/loram.rootfs @ rev 754
slitaz-loram*: fix libfuse
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue May 06 21:38:43 2008 +0000 (2008-05-06) |
parents | be656ac55ce8 |
children | 30c30ae22fb8 |
rev | line source |
---|---|
pascal@309 | 1 echo "$(du -hs /usr | cut -f1) were used by /usr" |
pascal@309 | 2 for ii in /sbin /lib /bin; do |
pascal@309 | 3 mkdir -p ./usr/.moved$ii |
pascal@390 | 4 for j in e2fsprogs pcmciautils cpio syslinux-extra isapnptools ncurses \ |
pascal@390 | 5 libcap; do |
pascal@744 | 6 for k in $(grep -s ^$ii /var/lib/tazpkg/installed/$j/files.list) ; do |
pascal@309 | 7 [ -f .$k ] || continue |
pascal@309 | 8 mv .$k ./usr/.moved$k |
pascal@309 | 9 ln -s /usr/.moved$k .$k |
pascal@309 | 10 done |
pascal@309 | 11 done |
pascal@309 | 12 done |
pascal@390 | 13 k="$(ls /lib/lib[rp]*.so)" |
pascal@390 | 14 [ -x /bin/funionfs ] && k="$(ls /lib/libresolv*.so)" |
pascal@390 | 15 for ii in /var/lib/tazpkg/installed /lib/modules/*/kernel/drivers/net \ |
pascal@390 | 16 /lib/modules/*/kernel/sound /sbin/depmod /sbin/modinfo /bin/lsmod \ |
pascal@390 | 17 /lib/libns*.so $k; do |
pascal@390 | 18 [ -L .$ii ] && continue |
pascal@309 | 19 j=$(dirname /usr/.moved$ii) |
pascal@309 | 20 mkdir -p .$j |
pascal@309 | 21 mv .$ii .$j |
pascal@309 | 22 ln -s /usr/.moved$ii .$ii |
pascal@309 | 23 done |
pascal@390 | 24 echo "$(du -hs ./usr/.moved | cut -f1) have been moved into /usr" |
pascal@370 | 25 usr=usr |
pascal@754 | 26 if [ -x bin/funionfs -o -x usr/bin/mkcromfs ]; then |
pascal@370 | 27 usr=.usr.ro |
pascal@370 | 28 mkdir .usr.ro .usr.rw |
pascal@370 | 29 ln -s /.usr.ro/lib/$(cd usr/lib ; ls libfuse.so.2.*) lib/libfuse.so.2 |
pascal@370 | 30 fi |
pascal@370 | 31 if [ -x usr/bin/mkcromfs ]; then |
pascal@370 | 32 usr/bin/mkcromfs -qq -f 262144 -b 16384 usr ../rootcd/usr.cromfs |
pascal@370 | 33 rm -rf usr |
pascal@370 | 34 mkdir usr |
pascal@370 | 35 for ii in unmkcromfs cromfs-driver ; do |
pascal@370 | 36 mv bin/$ii ../rootcd |
pascal@370 | 37 ln -s /cdrom/$ii bin/$ii |
pascal@370 | 38 done |
pascal@370 | 39 elif [ -x usr/sbin/mksquashfs ]; then |
pascal@309 | 40 usr/sbin/mksquashfs usr ../rootcd/usr.sqfs |
pascal@309 | 41 rm -rf usr |
pascal@309 | 42 mkdir usr |
pascal@309 | 43 else |
pascal@309 | 44 mv usr ../rootcd |
pascal@390 | 45 [ "$usr" = "usr" ] || mv $usr usr |
pascal@370 | 46 ln -s /cdrom/usr $usr |
pascal@309 | 47 ln -s /bin ../rootcd/bin |
pascal@309 | 48 fi |
pascal@744 | 49 for ii in bin/vcsa2txt bin/script bin/cut bin/readlink ; do |
pascal@370 | 50 ln -s busybox $ii |
pascal@370 | 51 done |
pascal@309 | 52 mkdir cdrom |
pascal@309 | 53 COMPRESSION="gzip" |