diff --git a/README b/README index 447fee0..12f99b6 100644 --- a/README +++ b/README @@ -10,7 +10,15 @@ distribution into a Live Kit (formely known as Live CD). and reorganize isolinux.cfg to fit your needs (when editing the file, keep all paths in /boot/, it will be rellocated during LiveKit creation) -* When done editing, run the ./build script to create your Live Kit +* If you plan to boot your Live Kit from CD, you need to recompile + syslinux.bin to include your target path. There is a script prepared + for you which will handle all of that. Simply go to directory ./tools/ + and run isolinux.bin.update ... it will update your isolinux.bin + automatically by downloading isolinux sources, patching them using + your actual LIVEKITNAME and recompiling. It will copy the new isolinux.bin + binary to bootfiles for you as well. + +* When done, run the ./build script to create your Live Kit Author: Tomas M. diff --git a/bootfiles/isolinux.bin b/bootfiles/isolinux.bin index 1512264..922c3b0 100644 Binary files a/bootfiles/isolinux.bin and b/bootfiles/isolinux.bin differ diff --git a/tools/isolinux.bin.update b/tools/isolinux.bin.update new file mode 100755 index 0000000..f78c48e --- /dev/null +++ b/tools/isolinux.bin.update @@ -0,0 +1,29 @@ +#!/bin/bash + +# This script will update the file ../bootfiles/isolinux.bin to match +# your LiveKit name used in ../.config + +PKG=syslinux-4.05 +PKGTGZ=$PKG.tar.gz +DL="http://www.kernel.org/pub/linux/utils/boot/syslinux/$PKGTGZ" + +. ../.config + +# download, unpack, and patch syslinux +wget -c "$DL" +tar -xf $PKGTGZ +#rm $PKGTGZ + +cd $PKG + +sed -i -r "s:/boot/syslinux:/$LIVEKITNAME/boot:" core/fs/iso9660/iso9660.c +sed -i -r "s:/boot/syslinux:/$LIVEKITNAME/boot:" core/fs/lib/loadconfig.c + +make installer +cp core/isolinux.bin ../../bootfiles/isolinux.bin + +echo +echo "Copying isolinux.bin to $(realpath ../../bootfiles/isolinux.bin)" + +cd .. +rm -Rf $PKG