From 82dc9057c5392bc4adda53dc90f091385584fd20 Mon Sep 17 00:00:00 2001 From: TomasM Date: Sun, 15 Oct 2017 08:40:46 -0400 Subject: [PATCH] put all dirs into single core.sb --- build | 21 ++++++++------------- config | 2 +- 2 files changed, 9 insertions(+), 14 deletions(-) diff --git a/build b/build index b2b8ef1..931660d 100755 --- a/build +++ b/build @@ -54,19 +54,14 @@ cat bootfiles/syslinux.cfg | sed -r "s:/boot/:/$LIVEKITNAME/boot/:" > $BOOT/sysl cat bootfiles/bootinst.bat | sed -r "s:/boot/:/$LIVEKITNAME/boot/:" | sed -r "s:\\\\boot\\\\:\\\\$LIVEKITNAME\\\\boot\\\\:" > $BOOT/bootinst.bat cp $VMLINUZ $BOOT/ -if [ -d sb ]; then - cp sb/* $LIVEKITDATA/$LIVEKITNAME/ -else - # create compressed bundles - for i in $MKMOD; do - mksquashfs /$i $LIVEKITDATA/$LIVEKITNAME/$i.$BEXT -comp xz -b 512k -keep-as-directory - done -fi - -# copy rootcopy folder -if [ -d rootcopy ]; then - cp -a rootcopy $LIVEKITDATA/$LIVEKITNAME/ -fi +# create compressed core.sb +COREFS="" +for i in $MKMOD; do + if [ -d /$i ]; then + COREFS="$COREFS /$i" + fi +done +mksquashfs $COREFS $LIVEKITDATA/$LIVEKITNAME/core.$BEXT -comp xz -b 512k -keep-as-directory cd "$LIVEKITDATA" ARCH=$(uname -m) diff --git a/config b/config index 2740016..ec93a84 100644 --- a/config +++ b/config @@ -23,7 +23,7 @@ VMLINUZ=/vmlinuz # Live Kit with a different kernel than the one you are actually running KERNEL=$(uname -r) -# List of directories which will be modularized +# List of directories for root filesystem # No subdirectories are allowed, no slashes, # so You can't use /var/tmp here for example # Exclude directories like proc sys tmp