compress current filesystem
parent
d5102a98c4
commit
ec4660f831
1
.config
1
.config
|
|
@ -16,6 +16,7 @@ KERNEL=$(uname -r)
|
|||
# List of directories which will be modularized
|
||||
# No subdirectories are allowed, no slashes,
|
||||
# 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"
|
||||
|
||||
# List of files and directories you'd like to exclude from your Live Kit
|
||||
|
|
|
|||
7
build
7
build
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue