make core module 01-core

pull/40/head
TomasM 2017-10-18 08:51:41 -04:00
parent e1f8ae8290
commit 03e97aed7b
1 changed files with 2 additions and 2 deletions

4
build
View File

@ -54,14 +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/
# create compressed core.sb # create compressed 01-core.sb
COREFS="" COREFS=""
for i in $MKMOD; do for i in $MKMOD; do
if [ -d /$i ]; then if [ -d /$i ]; then
COREFS="$COREFS /$i" COREFS="$COREFS /$i"
fi fi
done done
mksquashfs $COREFS $LIVEKITDATA/$LIVEKITNAME/core.$BEXT -comp xz -b 512k -keep-as-directory || exit mksquashfs $COREFS $LIVEKITDATA/$LIVEKITNAME/01-core.$BEXT -comp xz -b 512k -keep-as-directory || exit
cd "$LIVEKITDATA" cd "$LIVEKITDATA"
ARCH=$(uname -m) ARCH=$(uname -m)