From 60e9cccb159f33ab21ed6293ec405746648d98cc Mon Sep 17 00:00:00 2001 From: Ivan Davidov Date: Sat, 23 Jun 2018 14:19:57 +0300 Subject: [PATCH] Syslinux directory is evaluated only when Syslinux is used. --- src/13_prepare_iso.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/13_prepare_iso.sh b/src/13_prepare_iso.sh index b00fc19e6..f1b8ef315 100755 --- a/src/13_prepare_iso.sh +++ b/src/13_prepare_iso.sh @@ -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