compress current filesystem

pull/5/head
Tomas M 2012-09-17 09:02:18 -05:00
parent d5102a98c4
commit ec4660f831
2 changed files with 6 additions and 2 deletions

View File

@ -16,6 +16,7 @@ KERNEL=$(uname -r)
# List of directories which will be modularized # List of directories which will be modularized
# No subdirectories are allowed, no slashes, # No subdirectories are allowed, no slashes,
# so You can't use /var/tmp here for example # so You can't use /var/tmp here for example
# Exclude directories like proc sys tmp
MKMOD="bin etc home lib lib64 opt root sbin srv usr var" MKMOD="bin etc home lib lib64 opt root sbin srv usr var"
# List of files and directories you'd like to exclude from your Live Kit # List of files and directories you'd like to exclude from your Live Kit

7
build
View File

@ -25,7 +25,7 @@ cd initramfs
INITRAMFS=$(./initramfs_create "$LIVEKITNAME") INITRAMFS=$(./initramfs_create "$LIVEKITNAME")
cd .. cd ..
# create live kit filesystem # create live kit filesystem (cpio archive)
rm -Rf "$LIVEKITDATA" rm -Rf "$LIVEKITDATA"
BOOT="$LIVEKITDATA"/"$LIVEKITNAME"/boot BOOT="$LIVEKITDATA"/"$LIVEKITNAME"/boot
mkdir -p "$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/ cp /boot/vmlinuz $BOOT/
# create compressed bundles # create compressed bundles
# ... TODO! for i in $MKMOD; do
mksquashfs /$i $LIVEKITDATA/$LIVEKITNAME/$i.$BEXT -comp xz -b 512k
done
if [ -d sb ]; then if [ -d sb ]; then
cp sb/* $LIVEKITDATA/$LIVEKITNAME/ cp sb/* $LIVEKITDATA/$LIVEKITNAME/
fi fi