wok annotate slitaz-loram/stuff/loram.rootfs @ rev 898
slitaz-loram*: move zlib for module-init-tools
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jun 12 11:55:27 2008 +0000 (2008-06-12) |
parents | 25066eeb8547 |
children | 1c1dad96a8f3 |
rev | line source |
---|---|
pascal@309 | 1 echo "$(du -hs ./usr | cut -f1) were used by /usr" |
pascal@898 | 2 mv ./usr/lib/libz.so* ./lib |
pascal@309 | 3 for ii in /sbin /lib /bin; do |
pascal@309 | 4 mkdir -p ./usr/.moved$ii |
pascal@389 | 5 for j in e2fsprogs pcmciautils cpio syslinux-extra isapnptools ncurses \ |
pascal@389 | 6 libcap; do |
pascal@767 | 7 for k in $(grep -s ^$ii ./var/lib/tazpkg/installed/$j/files.list) ; do |
pascal@309 | 8 [ -f .$k ] || continue |
pascal@309 | 9 mv .$k ./usr/.moved$k |
pascal@309 | 10 ln -s /usr/.moved$k .$k |
pascal@309 | 11 done |
pascal@309 | 12 done |
pascal@309 | 13 done |
pascal@309 | 14 for ii in /var/lib/tazpkg/installed ; do |
pascal@309 | 15 j=$(dirname /usr/.moved$ii) |
pascal@309 | 16 mkdir -p .$j |
pascal@309 | 17 mv .$ii .$j |
pascal@309 | 18 ln -s /usr/.moved$ii .$ii |
pascal@309 | 19 done |
pascal@309 | 20 echo "$(du -hs ./usr/.moved | cut -f1) have been moved into /usr" |
pascal@309 | 21 echo "$(du -hs ./usr | cut -f1) were used by /usr before compression" |
pascal@389 | 22 if [ -x usr/bin/mkcromfs ]; then |
pascal@389 | 23 usr/bin/mkcromfs -qq -f 262144 -b 16384 usr .usr.cromfs |
pascal@389 | 24 else |
pascal@389 | 25 usr/sbin/mksquashfs usr .usr.sqfs |
pascal@389 | 26 fi |
pascal@754 | 27 if [ -x bin/funionfs -o -x usr/bin/mkcromfs ]; then |
pascal@849 | 28 mkdir .usr.ro |
pascal@369 | 29 ln -s /.usr.ro/lib/$(cd usr/lib ; ls libfuse.so.2.*) lib/libfuse.so.2 |
pascal@849 | 30 [ -x bin/funionfs ] && mkdir .usr.rw |
pascal@369 | 31 fi |
pascal@309 | 32 rm -rf usr |
pascal@309 | 33 mkdir usr |
pascal@309 | 34 COMPRESSION="none" |
pascal@389 | 35 echo "$(du -hs ./.usr.*fs | cut -f1) are used by /usr after compression" |
pascal@765 | 36 for ii in bin/vcsa2txt bin/awk bin/script bin/cut bin/readlink; do |
pascal@394 | 37 ln -s busybox $ii |
pascal@394 | 38 done |