tazlito rev 232
tazlito: set lzma'd rootfs size field (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Sep 03 14:53:04 2011 +0200 (2011-09-03) |
parents | a3cd5a4732f2 |
children | a5685dafef1a |
files | tazlito |
line diff
1.1 --- a/tazlito Sat Sep 03 14:49:04 2011 +0200 1.2 +++ b/tazlito Sat Sep 03 14:53:04 2011 +0200 1.3 @@ -325,7 +325,7 @@ 1.4 1.5 lzma_set_size() 1.6 { 1.7 - # Update size field for lzma'd file packed using -so switch 1.8 + # Update size field for lzma'd file packed using -si switch 1.9 local n 1.10 local i 1.11 n=$(unlzma -c $1 | wc -c) 1.12 @@ -906,6 +906,7 @@ 1.13 chmod +x $TMP_DIR/initfs/init 1.14 ( cd $TMP_DIR/initfs ; find | busybox cpio -o -H newc 2> /dev/null) | \ 1.15 lzma e $TMP_DIR/initfs.gz -si 1.16 + lzma_set_size $TMP_DIR/initfs.gz 1.17 rm -rf $TMP_DIR/initfs 1.18 rem=$(( $(stat -c "%s" $TMP_DIR/initfs.gz) % 4 )) 1.19 [ $rem -ne 0 ] &&