wok-6.x annotate slitaz-loram/stuff/loram.rootfs @ rev 6654

Added linux-api-headers. This is like linux-headers but it doesn't depend on linux to be build. Also this means we can update the kernel without rebuild the toolchain.
author Christopher Rogers <slaxemulator@gmail.com>
date Mon Oct 11 02:17:02 2010 +0000 (2010-10-11)
parents fa0257184d3c
children 0a217ca53bab
rev   line source
pascal@309 1 echo "$(du -hs ./usr | cut -f1) were used by /usr"
pascal@4099 2 for j in insmod unmkcromfs unsquashfs ; do
pascal@4099 3 lib/ld-*.so --list *bin/$j 2> /dev/null | grep /usr/lib | cut -d\ -f3 | \
pascal@4099 4 while read ii; do
pascal@4099 5 mv .${ii%%.so.*}.so* ./lib
pascal@4099 6 done
pascal@954 7 done
pascal@309 8 for ii in /sbin /lib /bin; do
pascal@309 9 mkdir -p ./usr/.moved$ii
pascal@389 10 for j in e2fsprogs pcmciautils cpio syslinux-extra isapnptools ncurses \
pascal@389 11 libcap; do
pascal@767 12 for k in $(grep -s ^$ii ./var/lib/tazpkg/installed/$j/files.list) ; do
pascal@309 13 [ -f .$k ] || continue
pascal@309 14 mv .$k ./usr/.moved$k
pascal@309 15 ln -s /usr/.moved$k .$k
pascal@309 16 done
pascal@309 17 done
pascal@309 18 done
pascal@309 19 for ii in /var/lib/tazpkg/installed ; do
pascal@309 20 j=$(dirname /usr/.moved$ii)
pascal@309 21 mkdir -p .$j
pascal@309 22 mv .$ii .$j
pascal@309 23 ln -s /usr/.moved$ii .$ii
pascal@309 24 done
pascal@309 25 echo "$(du -hs ./usr/.moved | cut -f1) have been moved into /usr"
pascal@309 26 echo "$(du -hs ./usr | cut -f1) were used by /usr before compression"
pascal@1884 27 usr=usr
pascal@389 28 if [ -x usr/bin/mkcromfs ]; then
pascal@389 29 usr/bin/mkcromfs -qq -f 262144 -b 16384 usr .usr.cromfs
pascal@389 30 else
pascal@4705 31 usr/sbin/mksquashfs usr .usr.sqfs -comp lzma
pascal@389 32 fi
pascal@5048 33 if [ -x bin/funionfs -o -d /var/lib/tazpkg/installed/aufs-utils ]; then
pascal@1884 34 mkdir .usr.rw .usr.ro
pascal@1884 35 usr=.usr.ro
pascal@1884 36 fi
pascal@754 37 if [ -x bin/funionfs -o -x usr/bin/mkcromfs ]; then
pascal@1884 38 ln -s /$usr/lib/$(cd usr/lib ; ls libfuse.so.2.*) lib/libfuse.so.2
pascal@369 39 fi
pascal@309 40 rm -rf usr
pascal@309 41 mkdir usr
pascal@389 42 echo "$(du -hs ./.usr.*fs | cut -f1) are used by /usr after compression"
pascal@2140 43 for ii in bin/vcsa2txt bin/awk bin/script bin/cut bin/readlink bin/du bin/free \
pascal@4454 44 bin/killall5 bin/seq bin/find bin/xargs bin/patch; do
pascal@1620 45 [ -e $ii ] || ln -s busybox $ii
pascal@394 46 done
pascal@5715 47 [ -e bin/vcsa2txt ] || ln -s busybox bin/conspy
pascal@5048 48 echo .usr.*fs | cpio -o -H newc > $1/rootfs.gz2
pascal@5048 49 rm -f .usr.*fs