wok-stable view slitaz-loram/stuff/loram.rootfs @ rev 728
firefox: Improved local Home page
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat May 03 00:34:02 2008 +0200 (2008-05-03) |
parents | 5b4e22afe799 |
children | bec96f4407c9 |
line source
1 echo "$(du -hs ./usr | cut -f1) were used by /usr"
2 for ii in /sbin /lib /bin; do
3 mkdir -p ./usr/.moved$ii
4 for j in e2fsprogs pcmciautils cpio syslinux-extra isapnptools ncurses \
5 libcap; do
6 for k in $(grep ^$ii ./var/lib/tazpkg/installed/$j/files.list) ; do
7 [ -f .$k ] || continue
8 mv .$k ./usr/.moved$k
9 ln -s /usr/.moved$k .$k
10 done
11 done
12 done
13 for ii in /var/lib/tazpkg/installed ; do
14 j=$(dirname /usr/.moved$ii)
15 mkdir -p .$j
16 mv .$ii .$j
17 ln -s /usr/.moved$ii .$ii
18 done
19 echo "$(du -hs ./usr/.moved | cut -f1) have been moved into /usr"
20 echo "$(du -hs ./usr | cut -f1) were used by /usr before compression"
21 if [ -x usr/bin/mkcromfs ]; then
22 usr/bin/mkcromfs -qq -f 262144 -b 16384 usr .usr.cromfs
23 else
24 usr/sbin/mksquashfs usr .usr.sqfs
25 fi
26 if [ -x bin/funionfs ]; then
27 mkdir .usr.ro .usr.rw
28 ln -s /.usr.ro/lib/$(cd usr/lib ; ls libfuse.so.2.*) lib/libfuse.so.2
29 fi
30 rm -rf usr
31 mkdir usr
32 COMPRESSION="none"
33 echo "$(du -hs ./.usr.*fs | cut -f1) are used by /usr after compression"
34 for ii in bin/vcsa2txt bin/awk bin/script; do
35 ln -s busybox $ii
36 done