tazlito rev 48
Use slitaz-loram* hooks
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Mar 08 11:43:08 2008 +0000 (2008-03-08) |
parents | dd57bfd87d12 |
children | 2d0b318dcf6f |
files | tazlito |
line diff
1.1 --- a/tazlito Sat Mar 08 01:25:01 2008 +0000 1.2 +++ b/tazlito Sat Mar 08 11:43:08 2008 +0000 1.3 @@ -473,39 +473,10 @@ 1.4 ( zcat ../rootcd/boot/rootfs.gz 2>/dev/null || \ 1.5 lzma d ../rootcd/boot/rootfs.?z -so 2>/dev/null || \ 1.6 cat ../rootcd/boot/rootfs.gz ) | cpio -id 1.7 - # remove link to cdrom 1.8 - if [ -L usr ]; then 1.9 - rm usr 1.10 - mv ../rootcd/usr . 1.11 - fi 1.12 - [ -d cdrom ] && rmdir cdrom 1.13 # unpack /usr 1.14 - sqfs="../rootcd/usr.sqfs" 1.15 - [ -f $sqfs ] || sqfs=".usr.sqfs" 1.16 - if [ -f $sqfs ]; then 1.17 - echo -en "\nUnsquashfs'ing /usr... " 1.18 - rmdir usr 1.19 - sbin/unsquashfs -d usr $sqfs 1.20 - rm -f $sqfs 1.21 - fi 1.22 - cromfs="../rootcd/usr.cromfs" 1.23 - [ -f $cromfs ] || cromfs=".usr.cromfs" 1.24 - if [ -f $cromfs ]; then 1.25 - echo -en "\nUnmkcromfs'ing /usr... " 1.26 - rmdir usr 1.27 - bin/unmkcromfs $cromfs usr 1.28 - rm -f $cromfs 1.29 - fi 1.30 - if [ -d usr/.moved ]; then 1.31 - echo -en "\nRestoring moved files from /usr... " 1.32 - ( cd usr/.moved ; find * -print ) | \ 1.33 - while read file; do 1.34 - [ -L "$file" ] || continue 1.35 - rm -f "$file" 1.36 - mv "usr/.moved/$file" "$file" 1.37 - done 1.38 - rm -rf usr/.moved 1.39 - fi 1.40 + for i in etc/tazlito/*.extract; do 1.41 + . $i ../rootcd 1.42 + done 1.43 # Umount and remove temp directory and cd to $TARGET to get stats. 1.44 umount $TMP_DIR && rm -rf $TMP_DIR 1.45 cd ..