wok-current annotate slitaz-loram/stuff/loram.rootfs @ rev 369
Slitaz-loram: version 1.2, access r/w to /usr
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Mar 08 01:10:18 2008 +0000 (2008-03-08) |
parents | 3a5e92c048e0 |
children | 5b4e22afe799 |
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@309 | 4 for j in e2fsprogs pcmciautils cpio syslinux-extra isapnptools ncurses; do |
pascal@309 | 5 for k in $(grep ^$ii ./var/lib/tazpkg/installed/$j/files.list) ; do |
pascal@309 | 6 [ -f .$k ] || continue |
pascal@309 | 7 mv .$k ./usr/.moved$k |
pascal@309 | 8 ln -s /usr/.moved$k .$k |
pascal@309 | 9 done |
pascal@309 | 10 done |
pascal@309 | 11 done |
pascal@309 | 12 for ii in /var/lib/tazpkg/installed ; do |
pascal@309 | 13 j=$(dirname /usr/.moved$ii) |
pascal@309 | 14 mkdir -p .$j |
pascal@309 | 15 mv .$ii .$j |
pascal@309 | 16 ln -s /usr/.moved$ii .$ii |
pascal@309 | 17 done |
pascal@309 | 18 echo "$(du -hs ./usr/.moved | cut -f1) have been moved into /usr" |
pascal@309 | 19 echo "$(du -hs ./usr | cut -f1) were used by /usr before compression" |
pascal@369 | 20 usr/bin/mkcromfs -qq -f 262144 -b 16384 usr .usr.cromfs |
pascal@369 | 21 if [ -x bin/funionfs ]; then |
pascal@369 | 22 mkdir .usr.ro .usr.rw |
pascal@369 | 23 ln -s /.usr.ro/lib/$(cd usr/lib ; ls libfuse.so.2.*) lib/libfuse.so.2 |
pascal@369 | 24 fi |
pascal@309 | 25 rm -rf usr |
pascal@309 | 26 mkdir usr |
pascal@309 | 27 COMPRESSION="none" |
pascal@369 | 28 echo "$(du -hs ./.usr.cromfs | cut -f1) are used by /usr after compression" |