wok annotate slitaz-loram-http/stuff/loram.rootfs @ rev 1631
kbd-busybox: can't build on virtual systems !
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Oct 23 20:31:20 2008 +0000 (2008-10-23) |
parents | 755c0e3c3a53 |
children | 27c64029013c |
rev | line source |
---|---|
pascal@1290 | 1 echo "$(du -hs /usr | cut -f1) were used by /usr" |
pascal@1290 | 2 lib/ld-*.so --list ./sbin/insmod | grep /usr/lib | cut -d\ -f3 | \ |
pascal@1290 | 3 while read ii; do |
pascal@1290 | 4 mv .${ii%%.so.*}.so* ./lib |
pascal@1290 | 5 done |
pascal@1290 | 6 for ii in /sbin /lib /bin; do |
pascal@1290 | 7 mkdir -p ./usr/.moved$ii |
pascal@1290 | 8 for j in e2fsprogs pcmciautils cpio syslinux-extra isapnptools ncurses \ |
pascal@1290 | 9 libcap; do |
pascal@1290 | 10 for k in $(grep -s ^$ii /var/lib/tazpkg/installed/$j/files.list) ; do |
pascal@1290 | 11 [ -f .$k ] || continue |
pascal@1290 | 12 mv .$k ./usr/.moved$k |
pascal@1290 | 13 ln -s /usr/.moved$k .$k |
pascal@1290 | 14 done |
pascal@1290 | 15 done |
pascal@1290 | 16 done |
pascal@1290 | 17 k="$(ls /lib/libp*.so /lib/librt*)" |
pascal@1290 | 18 [ -x /bin/funionfs ] && k="" |
pascal@1290 | 19 for ii in /var/lib/tazpkg/installed /lib/modules/*/kernel/drivers/net \ |
pascal@1290 | 20 /lib/modules/*/kernel/sound /sbin/depmod /sbin/modinfo /bin/lsmod \ |
pascal@1290 | 21 /lib/libnss_[^d]* $k; do |
pascal@1290 | 22 [ -L .$ii ] && continue |
pascal@1290 | 23 j=$(dirname /usr/.moved$ii) |
pascal@1290 | 24 mkdir -p .$j |
pascal@1290 | 25 mv .$ii .$j |
pascal@1290 | 26 ln -s /usr/.moved$ii .$ii |
pascal@1290 | 27 done |
pascal@1290 | 28 echo "$(du -hs ./usr/.moved | cut -f1) have been moved into /usr" |
pascal@1290 | 29 mv usr/bin/httpfs bin |
pascal@1290 | 30 cp usr/lib/libfuse.so.2.* lib/libfuse.so.2 |
pascal@1290 | 31 mv usr/share/udhcpc/default.script . |
pascal@1290 | 32 rm -rf usr |
pascal@1290 | 33 mkdir -p usr/share/udhcpc |
pascal@1290 | 34 mv default.script usr/share/udhcpc |
pascal@1290 | 35 ln -s /cdrom/boot boot |
pascal@1290 | 36 for ii in bin/vcsa2txt bin/awk bin/script bin/cut bin/readlink bin/du bin/free; do |
pascal@1620 | 37 [ -e $ii ] || ln -s busybox $ii |
pascal@1290 | 38 done |
pascal@1290 | 39 mkdir cdrom .usr.rw |
pascal@1290 | 40 COMPRESSION="gzip" |