diff --git a/features.in/syslinux/generate.mk b/features.in/syslinux/generate.mk index 256f33c3..944bacc7 100644 --- a/features.in/syslinux/generate.mk +++ b/features.in/syslinux/generate.mk @@ -51,8 +51,7 @@ all: prep debug @### proper text branding should be implemented @sed -i 's,@mkimage-profiles@,$(IMAGE_NAME),' $(DSTDIR)/*.cfg @echo $(SYSLINUX_MODULES) > $(DSTDIR)/modules.list - @echo $(SYSLINUX_FILES) > $(DSTDIR)/files.list - @echo $(BOOTLOADER) > $(DSTDIR)/bootloader + @echo $(SYSLINUX_FILES) > $(DSTDIR)/syslinux.list prep: @mkdir -p $(DSTDIR) diff --git a/features.in/syslinux/stage1/scripts.d/01-syslinux b/features.in/syslinux/stage1/scripts.d/01-syslinux index 0ce58286..9d7bf2a9 100755 --- a/features.in/syslinux/stage1/scripts.d/01-syslinux +++ b/features.in/syslinux/stage1/scripts.d/01-syslinux @@ -7,15 +7,15 @@ MODDIR="/usr/lib/syslinux" mkdir -p "$WORKDIR/syslinux" cd "$WORKDIR/syslinux" -# validate just in case (written by ../../generate.mk) -BOOTLOADER="$(cat .in/bootloader)" -case "$BOOTLOADER" in +# validate just in case (see also stage1 Makefile) +case "$GLOBAL_BOOTLOADER" in isolinux|syslinux) ;; - *) echo "$0: error: weird BOOTLOADER: $BOOTLOADER" >&2; exit 1;; + *) echo "error: weird GLOBAL_BOOTLOADER: \`$GLOBAL_BOOTLOADER'" >&2; + exit 1;; esac # copy extra files, if any -SYSLINUX_FILES="$(cat .in/files.list)" +SYSLINUX_FILES="$(cat .in/syslinux.list)" if [ -n "${SYSLINUX_FILES% }" ]; then cp -a $SYSLINUX_FILES . fi @@ -30,7 +30,7 @@ if [ -n "$SYSLINUX_MODULES" ]; then fi # number ordering sponsored by shell's pathname expansion -grep -hv '^#' .in/[0-9][0-9]*.cfg > "$BOOTLOADER.cfg" +grep -hv '^#' .in/[0-9][0-9]*.cfg > "$GLOBAL_BOOTLOADER.cfg" # snippets are not going into the actual image if [ "$DEBUG" != 2 ]; then rm -r .in/; fi diff --git a/sub.in/stage1/Makefile b/sub.in/stage1/Makefile index adab7761..afbbc9d8 100644 --- a/sub.in/stage1/Makefile +++ b/sub.in/stage1/Makefile @@ -11,6 +11,7 @@ include $(MKIMAGE_PREFIX)/config.mk ifndef BOOTLOADER $(error BOOTLOADER not defined) endif +GLOBAL_BOOTLOADER := $(BOOTLOADER) MKI_PACK_RESULTS = data PROPAGATOR_VERSION = ALT Linux