build impro
parent
9c98f90992
commit
ccd6cde34a
|
|
@ -5,12 +5,15 @@
|
||||||
. ./copy
|
. ./copy
|
||||||
|
|
||||||
# now run build script
|
# now run build script
|
||||||
|
SKIPINITRFS=true
|
||||||
cd ../../
|
cd ../../
|
||||||
./build
|
. ./build
|
||||||
|
|
||||||
|
# re-setup initrd to include aufs
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install aufs-dkms
|
apt-get install aufs-dkms
|
||||||
|
|
||||||
# and re-setup initrd to include aufs
|
cd initramfs
|
||||||
./initramfs/initramfs_create
|
. ./initramfs_create
|
||||||
|
|
||||||
|
cp -f $INITRAMFS.img $LIVEKITDATA/$LIVEKITNAME/boot/initrfs.img
|
||||||
|
|
|
||||||
11
build
11
build
|
|
@ -31,10 +31,12 @@ if [ "$MKISOFS" = "" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# build initramfs image
|
# build initramfs image
|
||||||
|
if [ "$SKIPINITRFS" = "" ]; then
|
||||||
echo "Building intramfs image..."
|
echo "Building intramfs image..."
|
||||||
cd initramfs
|
cd initramfs
|
||||||
INITRAMFS=$(./initramfs_create "$LIVEKITNAME")
|
INITRAMFS=$(./initramfs_create)
|
||||||
cd ..
|
cd ..
|
||||||
|
fi
|
||||||
|
|
||||||
# create live kit filesystem (cpio archive)
|
# create live kit filesystem (cpio archive)
|
||||||
rm -Rf "$LIVEKITDATA"
|
rm -Rf "$LIVEKITDATA"
|
||||||
|
|
@ -42,7 +44,11 @@ BOOT="$LIVEKITDATA"/"$LIVEKITNAME"/boot
|
||||||
mkdir -p "$BOOT"
|
mkdir -p "$BOOT"
|
||||||
mkdir -p "$BOOT"/../changes
|
mkdir -p "$BOOT"/../changes
|
||||||
mkdir -p "$BOOT"/../modules
|
mkdir -p "$BOOT"/../modules
|
||||||
|
|
||||||
|
if [ "$INITRAMFS" != "" ]; then
|
||||||
mv "$INITRAMFS" $BOOT/initrfs.img
|
mv "$INITRAMFS" $BOOT/initrfs.img
|
||||||
|
fi
|
||||||
|
|
||||||
cp bootfiles/* $BOOT
|
cp bootfiles/* $BOOT
|
||||||
cat bootfiles/syslinux.cfg | sed -r "s:/boot/:/$LIVEKITNAME/boot/:" > $BOOT/syslinux.cfg
|
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
|
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..."
|
||||||
rm -f "$TARGET/$LIVEKITNAME-$ARCH.zip"
|
rm -f "$TARGET/$LIVEKITNAME-$ARCH.zip"
|
||||||
zip -0 -r "$TARGET/$LIVEKITNAME-$ARCH.zip" *
|
zip -0 -r "$TARGET/$LIVEKITNAME-$ARCH.zip" *
|
||||||
|
|
||||||
cd ..
|
|
||||||
#rm -Rf "$LIVEKITDATA"
|
|
||||||
echo "finished. Find your results in $TARGET"
|
echo "finished. Find your results in $TARGET"
|
||||||
|
cd $CWD
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue