compress current filesystem

This commit is contained in:
Tomas M
2012-09-17 09:02:18 -05:00
parent d5102a98c4
commit ec4660f831
2 changed files with 6 additions and 2 deletions
+5 -2
View File
@@ -25,7 +25,7 @@ cd initramfs
INITRAMFS=$(./initramfs_create "$LIVEKITNAME")
cd ..
# create live kit filesystem
# create live kit filesystem (cpio archive)
rm -Rf "$LIVEKITDATA"
BOOT="$LIVEKITDATA"/"$LIVEKITNAME"/boot
mkdir -p "$BOOT"
@@ -40,7 +40,10 @@ cat bootfiles/bootinst.bat | sed -r "s:/boot/:/$LIVEKITNAME/boot/:" | sed -r "s:
cp /boot/vmlinuz $BOOT/
# create compressed bundles
# ... TODO!
for i in $MKMOD; do
mksquashfs /$i $LIVEKITDATA/$LIVEKITNAME/$i.$BEXT -comp xz -b 512k
done
if [ -d sb ]; then
cp sb/* $LIVEKITDATA/$LIVEKITNAME/
fi