wok-stable view slitaz-loram/stuff/loram.rootfs @ rev 364
Better(...) background for Slim
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Mar 07 23:14:27 2008 +0100 (2008-03-07) |
parents | |
children | c570ed86d31a |
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; do
5 for k in $(grep ^$ii ./var/lib/tazpkg/installed/$j/files.list) ; do
6 [ -f .$k ] || continue
7 mv .$k ./usr/.moved$k
8 ln -s /usr/.moved$k .$k
9 done
10 done
11 done
12 for ii in /var/lib/tazpkg/installed ; do
13 j=$(dirname /usr/.moved$ii)
14 mkdir -p .$j
15 mv .$ii .$j
16 ln -s /usr/.moved$ii .$ii
17 done
18 echo "$(du -hs ./usr/.moved | cut -f1) have been moved into /usr"
19 echo "$(du -hs ./usr | cut -f1) were used by /usr before compression"
20 usr/sbin/mksquashfs usr .usr.sqfs
21 rm -rf usr
22 mkdir usr
23 COMPRESSION="none"
24 echo "$(du -hs ./.usr.sqfs | cut -f1) are used by /usr after compression"