wok-current view slitaz-loram/stuff/loram.rootfs @ rev 898

slitaz-loram*: move zlib for module-init-tools
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jun 12 11:55:27 2008 +0000 (2008-06-12)
parents 25066eeb8547
children 1c1dad96a8f3
line source
1 echo "$(du -hs ./usr | cut -f1) were used by /usr"
2 mv ./usr/lib/libz.so* ./lib
3 for ii in /sbin /lib /bin; do
4 mkdir -p ./usr/.moved$ii
5 for j in e2fsprogs pcmciautils cpio syslinux-extra isapnptools ncurses \
6 libcap; do
7 for k in $(grep -s ^$ii ./var/lib/tazpkg/installed/$j/files.list) ; do
8 [ -f .$k ] || continue
9 mv .$k ./usr/.moved$k
10 ln -s /usr/.moved$k .$k
11 done
12 done
13 done
14 for ii in /var/lib/tazpkg/installed ; do
15 j=$(dirname /usr/.moved$ii)
16 mkdir -p .$j
17 mv .$ii .$j
18 ln -s /usr/.moved$ii .$ii
19 done
20 echo "$(du -hs ./usr/.moved | cut -f1) have been moved into /usr"
21 echo "$(du -hs ./usr | cut -f1) were used by /usr before compression"
22 if [ -x usr/bin/mkcromfs ]; then
23 usr/bin/mkcromfs -qq -f 262144 -b 16384 usr .usr.cromfs
24 else
25 usr/sbin/mksquashfs usr .usr.sqfs
26 fi
27 if [ -x bin/funionfs -o -x usr/bin/mkcromfs ]; then
28 mkdir .usr.ro
29 ln -s /.usr.ro/lib/$(cd usr/lib ; ls libfuse.so.2.*) lib/libfuse.so.2
30 [ -x bin/funionfs ] && mkdir .usr.rw
31 fi
32 rm -rf usr
33 mkdir usr
34 COMPRESSION="none"
35 echo "$(du -hs ./.usr.*fs | cut -f1) are used by /usr after compression"
36 for ii in bin/vcsa2txt bin/awk bin/script bin/cut bin/readlink; do
37 ln -s busybox $ii
38 done