rewrote the script to make slax-specific isolinux.bin

pull/40/head
TomasM 2017-12-12 07:56:40 -05:00
parent 19a870f0ab
commit 08bbab7ce9
1 changed files with 15 additions and 26 deletions

View File

@ -3,40 +3,29 @@
# This script will update the file ../bootfiles/isolinux.bin to match # This script will update the file ../bootfiles/isolinux.bin to match
# your LiveKit name used in ../config # your LiveKit name used in ../config
# #
# Requires: wget, tar, gzip, make, gcc, nasm, perl, glibc-devel, libuuid-devel (e2fsprogs) # Requires: Debian
# #
# On minimal debian, you can get deps like this:
# apt-get install make binutils gcc nasm uuid-dev
set -e set -e
CWD=$(pwd)
PKG=syslinux-4.06
PKGTGZ=$PKG.tar.gz
DL="http://www.kernel.org/pub/linux/utils/boot/syslinux/$PKGTGZ"
. ../config
# download, unpack, and patch syslinux # download, unpack, and patch syslinux
if [ ! -d $PKG ]; then
rm -rf $PKG
wget --no-check-certificate -c "$DL"
tar -xf $PKGTGZ
fi
cd $PKG apt-get build-dep syslinux
mkdir -m 0777 /tmp/syslinux
cd /tmp/syslinux
apt-get source syslinux
cd syslinux*/core/fs
sed -i -r "s:/boot/syslinux:/$LIVEKITNAME/boot:" core/fs/iso9660/iso9660.c . $CWD/../config
sed -i -r "s:/boot/syslinux:/$LIVEKITNAME/boot:" core/fs/lib/loadconfig.c
make \ sed -i -r "s:/boot/syslinux:/$LIVEKITNAME/boot:" iso9660/iso9660.c
${CC:+CC="$CC"} sed -i -r "s:/boot/syslinux:/$LIVEKITNAME/boot:" lib/loadconfig.c
cp -p core/isolinux.bin ../../bootfiles/isolinux.bin cd ../../
make -j 8
echo echo
echo "Copying isolinux.bin to $(realpath ../../bootfiles/isolinux.bin)" echo "Copying isolinux.bin to $CWD"
cp -p bios/core/isolinux.bin $CWD/isolinux.bin
cd ..
rm -Rf $PKG
rm -f $PKGTGZ