build impro

This commit is contained in:
TomasM
2017-10-08 06:10:51 -04:00
parent 9c98f90992
commit ccd6cde34a
2 changed files with 18 additions and 10 deletions
Regular → Executable
+6 -3
View File
@@ -5,12 +5,15 @@
. ./copy
# now run build script
SKIPINITRFS=true
cd ../../
./build
. ./build
# re-setup initrd to include aufs
apt-get update
apt-get install aufs-dkms
# and re-setup initrd to include aufs
./initramfs/initramfs_create
cd initramfs
. ./initramfs_create
cp -f $INITRAMFS.img $LIVEKITDATA/$LIVEKITNAME/boot/initrfs.img
+12 -7
View File
@@ -31,10 +31,12 @@ if [ "$MKISOFS" = "" ]; then
fi
# build initramfs image
echo "Building intramfs image..."
cd initramfs
INITRAMFS=$(./initramfs_create "$LIVEKITNAME")
cd ..
if [ "$SKIPINITRFS" = "" ]; then
echo "Building intramfs image..."
cd initramfs
INITRAMFS=$(./initramfs_create)
cd ..
fi
# create live kit filesystem (cpio archive)
rm -Rf "$LIVEKITDATA"
@@ -42,7 +44,11 @@ BOOT="$LIVEKITDATA"/"$LIVEKITNAME"/boot
mkdir -p "$BOOT"
mkdir -p "$BOOT"/../changes
mkdir -p "$BOOT"/../modules
mv "$INITRAMFS" $BOOT/initrfs.img
if [ "$INITRAMFS" != "" ]; then
mv "$INITRAMFS" $BOOT/initrfs.img
fi
cp bootfiles/* $BOOT
cat bootfiles/syslinux.cfg | sed -r "s:/boot/:/$LIVEKITNAME/boot/:" > $BOOT/syslinux.cfg
cat bootfiles/bootinst.bat | sed -r "s:/boot/:/$LIVEKITNAME/boot/:" | sed -r "s:\\\\boot\\\\:\\\\$LIVEKITNAME\\\\boot\\\\:" > $BOOT/bootinst.bat
@@ -82,6 +88,5 @@ echo "Creating ZIP for USB boot..."
echo "Creating ZIP for USB boot..."
rm -f "$TARGET/$LIVEKITNAME-$ARCH.zip"
zip -0 -r "$TARGET/$LIVEKITNAME-$ARCH.zip" *
cd ..
echo "finished. Find your results in $TARGET"