From 5d6574552ff8fdf9623f4c0319097778f8523289 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Sun, 27 Apr 2014 12:35:58 +0200 Subject: Add support for making ext[234] or btrfs hdd images bootable with extlinux (Closes: #745816) extlinux configuration for the bootable image is installed to /boot/extlinux, matching the extlinux-install script in Debian. From the configuration point of view it's still called "syslinux", the same as the rest of the syslinux family (pxelinux, isolinux etc.) --- scripts/build/binary_syslinux | 33 +++++++++++++++++++++++---------- 1 file changed, 23 insertions(+), 10 deletions(-) (limited to 'scripts/build/binary_syslinux') diff --git a/scripts/build/binary_syslinux b/scripts/build/binary_syslinux index 1cf7f75ff..9d32e222f 100755 --- a/scripts/build/binary_syslinux +++ b/scripts/build/binary_syslinux @@ -79,15 +79,28 @@ case "${LIVE_IMAGE_TYPE}" in ;; hdd*|*) - _BOOTLOADER="syslinux" - - case "${LB_MODE}" in - progress-linux) - _TARGET="binary/boot" + case ${LB_BINARY_FILESYSTEM} in + fat*|ntfs) + _BOOTLOADER=syslinux + + case "${LB_MODE}" in + progress-linux) + _TARGET="binary/boot" + ;; + + *) + _TARGET="binary/syslinux" + ;; + esac ;; + ext[234]|btrfs) + _BOOTLOADER=extlinux + _TARGET="binary/boot/extlinux" + ;; *) - _TARGET="binary/syslinux" + Echo_error "syslinux/extlinux doesn't support ${LB_BINARY_FILESYSTEM}" + exit 1 ;; esac ;; @@ -110,7 +123,7 @@ fi # Checking depends case "${LB_BUILD_WITH_CHROOT}" in true) - Check_package chroot/usr/bin/syslinux syslinux + Check_package chroot/usr/bin/${_BOOTLOADER} ${_BOOTLOADER} Check_package chroot/usr/lib/syslinux syslinux-common if ls "${_SOURCE}"/*.svg* > /dev/null 2>&1 @@ -120,10 +133,10 @@ case "${LB_BUILD_WITH_CHROOT}" in ;; false) - if [ ! -e /usr/bin/syslinux ] + if [ ! -e /usr/bin/${_BOOTLOADER} ] then - # syslinux - Echo_error "/usr/bin/syslinux - no such file." + # syslinux or extlinux + Echo_error "/usr/bin/${_BOOTLOADER} - no such file." exit 1 fi -- cgit v1.2.3