put all dirs into single core.sb
parent
3c6691ed3f
commit
82dc9057c5
17
build
17
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
|
cat bootfiles/bootinst.bat | sed -r "s:/boot/:/$LIVEKITNAME/boot/:" | sed -r "s:\\\\boot\\\\:\\\\$LIVEKITNAME\\\\boot\\\\:" > $BOOT/bootinst.bat
|
||||||
cp $VMLINUZ $BOOT/
|
cp $VMLINUZ $BOOT/
|
||||||
|
|
||||||
if [ -d sb ]; then
|
# create compressed core.sb
|
||||||
cp sb/* $LIVEKITDATA/$LIVEKITNAME/
|
COREFS=""
|
||||||
else
|
|
||||||
# create compressed bundles
|
|
||||||
for i in $MKMOD; do
|
for i in $MKMOD; do
|
||||||
mksquashfs /$i $LIVEKITDATA/$LIVEKITNAME/$i.$BEXT -comp xz -b 512k -keep-as-directory
|
if [ -d /$i ]; then
|
||||||
|
COREFS="$COREFS /$i"
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
fi
|
mksquashfs $COREFS $LIVEKITDATA/$LIVEKITNAME/core.$BEXT -comp xz -b 512k -keep-as-directory
|
||||||
|
|
||||||
# copy rootcopy folder
|
|
||||||
if [ -d rootcopy ]; then
|
|
||||||
cp -a rootcopy $LIVEKITDATA/$LIVEKITNAME/
|
|
||||||
fi
|
|
||||||
|
|
||||||
cd "$LIVEKITDATA"
|
cd "$LIVEKITDATA"
|
||||||
ARCH=$(uname -m)
|
ARCH=$(uname -m)
|
||||||
|
|
|
||||||
2
config
2
config
|
|
@ -23,7 +23,7 @@ VMLINUZ=/vmlinuz
|
||||||
# Live Kit with a different kernel than the one you are actually running
|
# Live Kit with a different kernel than the one you are actually running
|
||||||
KERNEL=$(uname -r)
|
KERNEL=$(uname -r)
|
||||||
|
|
||||||
# List of directories which will be modularized
|
# List of directories for root filesystem
|
||||||
# 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
|
# Exclude directories like proc sys tmp
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue