wok-current annotate slitaz-loram/stuff/loram.rootfs @ rev 309
Slitaz-loram*: update patch according to /etc/init.d/rcS
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Mar 01 12:55:33 2008 +0000 (2008-03-01) |
parents | |
children | c570ed86d31a |
rev | line source |
---|---|
pascal@309 | 1 echo "$(du -hs ./usr | cut -f1) were used by /usr" |
pascal@309 | 2 for ii in /sbin /lib /bin; do |
pascal@309 | 3 mkdir -p ./usr/.moved$ii |
pascal@309 | 4 for j in e2fsprogs pcmciautils cpio syslinux-extra isapnptools ncurses; do |
pascal@309 | 5 for k in $(grep ^$ii ./var/lib/tazpkg/installed/$j/files.list) ; do |
pascal@309 | 6 [ -f .$k ] || continue |
pascal@309 | 7 mv .$k ./usr/.moved$k |
pascal@309 | 8 ln -s /usr/.moved$k .$k |
pascal@309 | 9 done |
pascal@309 | 10 done |
pascal@309 | 11 done |
pascal@309 | 12 for ii in /var/lib/tazpkg/installed ; do |
pascal@309 | 13 j=$(dirname /usr/.moved$ii) |
pascal@309 | 14 mkdir -p .$j |
pascal@309 | 15 mv .$ii .$j |
pascal@309 | 16 ln -s /usr/.moved$ii .$ii |
pascal@309 | 17 done |
pascal@309 | 18 echo "$(du -hs ./usr/.moved | cut -f1) have been moved into /usr" |
pascal@309 | 19 echo "$(du -hs ./usr | cut -f1) were used by /usr before compression" |
pascal@309 | 20 usr/sbin/mksquashfs usr .usr.sqfs |
pascal@309 | 21 rm -rf usr |
pascal@309 | 22 mkdir usr |
pascal@309 | 23 COMPRESSION="none" |
pascal@309 | 24 echo "$(du -hs ./.usr.sqfs | cut -f1) are used by /usr after compression" |