wok-next annotate slitaz-loram/stuff/loram.rootfs @ rev 487
Add: lxnetdaemon (go for 448 pkgs...)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Mar 22 15:13:36 2008 +0100 (2008-03-22) |
parents | 5b4e22afe799 |
children | bec96f4407c9 |
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@389 | 4 for j in e2fsprogs pcmciautils cpio syslinux-extra isapnptools ncurses \ |
pascal@389 | 5 libcap; do |
pascal@309 | 6 for k in $(grep ^$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@309 | 13 for ii in /var/lib/tazpkg/installed ; do |
pascal@309 | 14 j=$(dirname /usr/.moved$ii) |
pascal@309 | 15 mkdir -p .$j |
pascal@309 | 16 mv .$ii .$j |
pascal@309 | 17 ln -s /usr/.moved$ii .$ii |
pascal@309 | 18 done |
pascal@309 | 19 echo "$(du -hs ./usr/.moved | cut -f1) have been moved into /usr" |
pascal@309 | 20 echo "$(du -hs ./usr | cut -f1) were used by /usr before compression" |
pascal@389 | 21 if [ -x usr/bin/mkcromfs ]; then |
pascal@389 | 22 usr/bin/mkcromfs -qq -f 262144 -b 16384 usr .usr.cromfs |
pascal@389 | 23 else |
pascal@389 | 24 usr/sbin/mksquashfs usr .usr.sqfs |
pascal@389 | 25 fi |
pascal@369 | 26 if [ -x bin/funionfs ]; then |
pascal@369 | 27 mkdir .usr.ro .usr.rw |
pascal@369 | 28 ln -s /.usr.ro/lib/$(cd usr/lib ; ls libfuse.so.2.*) lib/libfuse.so.2 |
pascal@369 | 29 fi |
pascal@309 | 30 rm -rf usr |
pascal@309 | 31 mkdir usr |
pascal@309 | 32 COMPRESSION="none" |
pascal@389 | 33 echo "$(du -hs ./.usr.*fs | cut -f1) are used by /usr after compression" |
pascal@394 | 34 for ii in bin/vcsa2txt bin/awk bin/script; do |
pascal@394 | 35 ln -s busybox $ii |
pascal@394 | 36 done |