isolinux.bin autoupdate
parent
701d872744
commit
00a8051928
10
README
10
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,
|
and reorganize isolinux.cfg to fit your needs (when editing the file,
|
||||||
keep all paths in /boot/, it will be rellocated during LiveKit creation)
|
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. <http://www.linux-live.org>
|
Author: Tomas M. <http://www.linux-live.org>
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -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
|
||||||
Loading…
Reference in New Issue