diff --git a/.config b/.config index e87acc7..38e2d75 100644 --- a/.config +++ b/.config @@ -9,6 +9,9 @@ # in order to update isolinux.bin for CD booting. LIVEKITNAME="mylinux" +# Kernel file, will be copied to your Live Kit +VMLINUZ=/boot/vmlinuz + # Kernel version. Change it to "3.2.28" for example, if you are building # Live Kit with a different kernel than the one you are actually running KERNEL=$(uname -r) diff --git a/README b/README index a860900..ad417a3 100644 --- a/README +++ b/README @@ -7,6 +7,8 @@ distribution into a Live Kit (formely known as Live CD). * Before you start building your Kit, edit the file ./.config Most importantly change the LIVEKITNAME variable. +* Make sure your kernel is in /boot/vmlinuz + * You may also wish to replace boot graphics in ./bootfiles/bootlogo.png and reorganize isolinux.cfg to fit your needs (when editing the file, keep all paths in /boot/, it will be rellocated during LiveKit creation) @@ -17,7 +19,7 @@ distribution into a Live Kit (formely known as Live CD). of that. Simply go to directory ./tools/ and run isolinux.bin.update ... it will update ./bootfiles/isolinux.bin automatically by downloading isolinux sources, patching them using your actual LIVEKITNAME and - recompiling. + recompiling. This step is not needed if you plan to boot from USB only. * When done, run the ./build script to create your Live Kit - it will create ISO and TAR files for you in /tmp diff --git a/build b/build index 7c49ece..3392dc3 100755 --- a/build +++ b/build @@ -34,7 +34,7 @@ mv "$INITRAMFS" $BOOT/initrfs.img 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 -cp /boot/vmlinuz $BOOT/ +cp $VMLINUZ $BOOT/ if [ -d sb ]; then cp sb/* $LIVEKITDATA/$LIVEKITNAME/ diff --git a/livekitlib b/livekitlib index 8233ca1..6a45a51 100644 --- a/livekitlib +++ b/livekitlib @@ -196,7 +196,7 @@ init_union() echo "Setting up union using AUFS 3" mkdir -p "$1" mkdir -p "$2" - mount -t aufs -o xino="/.xino",br="$1" aufs "$2" + mount -t aufs -o xino="/.xino",trunc_xino,br="$1" aufs "$2" } # Return device mounted for given directory