diff --git a/x86/syslinux/syslinux.conf b/x86/syslinux/syslinux.conf index 6ddbdfa18..202409b95 100644 --- a/x86/syslinux/syslinux.conf +++ b/x86/syslinux/syslinux.conf @@ -20,9 +20,9 @@ var_append makeopt ' ' '$ITARGET' hook_add preconf 5 'syslinux_itarget_prepare' syslinux_itarget_prepare() { - export ITARGET=$( grep ^ITARGET Makefile | cut -d= -f2- ) - - rm -v $ITARGET + export ITARGET=$( grep ^ITARGET Makefile | cut -d= -f2- | sed -e 's/^ *//' ) + + [ -z "$ITARGET" ] || rm -v $ITARGET } # install mkdiskimage