wok-stable annotate slitaz-loram/stuff/loram.rootfs @ rev 1744

Add mtop/mkill
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Nov 22 21:34:01 2008 +0000 (2008-11-22)
parents 0ae8330553fc
children f0963019ca5a
rev   line source
pascal@309 1 echo "$(du -hs ./usr | cut -f1) were used by /usr"
pascal@954 2 lib/ld-*.so --list ./sbin/insmod | grep /usr/lib | cut -d\ -f3 | \
pascal@954 3 while read ii; do
pascal@954 4 mv .${ii%%.so.*}.so* ./lib
pascal@954 5 done
pascal@309 6 for ii in /sbin /lib /bin; do
pascal@309 7 mkdir -p ./usr/.moved$ii
pascal@389 8 for j in e2fsprogs pcmciautils cpio syslinux-extra isapnptools ncurses \
pascal@389 9 libcap; do
pascal@767 10 for k in $(grep -s ^$ii ./var/lib/tazpkg/installed/$j/files.list) ; do
pascal@309 11 [ -f .$k ] || continue
pascal@309 12 mv .$k ./usr/.moved$k
pascal@309 13 ln -s /usr/.moved$k .$k
pascal@309 14 done
pascal@309 15 done
pascal@309 16 done
pascal@309 17 for ii in /var/lib/tazpkg/installed ; do
pascal@309 18 j=$(dirname /usr/.moved$ii)
pascal@309 19 mkdir -p .$j
pascal@309 20 mv .$ii .$j
pascal@309 21 ln -s /usr/.moved$ii .$ii
pascal@309 22 done
pascal@309 23 echo "$(du -hs ./usr/.moved | cut -f1) have been moved into /usr"
pascal@309 24 echo "$(du -hs ./usr | cut -f1) were used by /usr before compression"
pascal@389 25 if [ -x usr/bin/mkcromfs ]; then
pascal@389 26 usr/bin/mkcromfs -qq -f 262144 -b 16384 usr .usr.cromfs
pascal@389 27 else
pascal@389 28 usr/sbin/mksquashfs usr .usr.sqfs
pascal@389 29 fi
pascal@754 30 if [ -x bin/funionfs -o -x usr/bin/mkcromfs ]; then
pascal@849 31 mkdir .usr.ro
pascal@369 32 ln -s /.usr.ro/lib/$(cd usr/lib ; ls libfuse.so.2.*) lib/libfuse.so.2
pascal@849 33 [ -x bin/funionfs ] && mkdir .usr.rw
pascal@369 34 fi
pascal@309 35 rm -rf usr
pascal@309 36 mkdir usr
pascal@309 37 COMPRESSION="none"
pascal@389 38 echo "$(du -hs ./.usr.*fs | cut -f1) are used by /usr after compression"
pascal@765 39 for ii in bin/vcsa2txt bin/awk bin/script bin/cut bin/readlink; do
pascal@1620 40 [ -e $ii ] || ln -s busybox $ii
pascal@394 41 done