Syslinux directory is evaluated only when Syslinux is used.

This commit is contained in:
Ivan Davidov 2018-06-23 14:19:57 +03:00
parent c8e0ac2a21
commit 60e9cccb15

View File

@ -5,9 +5,6 @@ set -e
# Load common properties and functions in the current script.
. ./common.sh
# Find the Syslinux build directory.
WORK_SYSLINUX_DIR=`ls -d $WORK_DIR/syslinux/syslinux-*`
init() {
# Remove the old ISO generation area if it exists.
echo "Removing old ISO image work area. This may take a while."
@ -56,6 +53,9 @@ prepare_boot_bios() {
cp -r $SRC_DIR/minimal_boot/bios/* \
$ISOIMAGE
# Find the Syslinux build directory.
WORK_SYSLINUX_DIR=`ls -d $WORK_DIR/syslinux/syslinux-*`
# Copy the precompiled files 'isolinux.bin' and 'ldlinux.c32'. These files
# are used by Syslinux during the legacy BIOS boot process.
mkdir -p $ISOIMAGE/boot/syslinux