From 5e4332c2da3052b0c6160d4523be47650a5ea89e Mon Sep 17 00:00:00 2001 From: Philip Date: Sun, 25 Dec 2016 18:18:53 +0100 Subject: [PATCH] [util-iso-boot] Try to fix syslinux issue with i686 architecture and 64bit CPU - see also: https://github.com/manjaro/manjaro-syslinux-theme/issues/1 --- lib/util-iso-boot.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/util-iso-boot.sh b/lib/util-iso-boot.sh index 5990611..b16d46c 100644 --- a/lib/util-iso-boot.sh +++ b/lib/util-iso-boot.sh @@ -107,6 +107,13 @@ prepare_efi_loader(){ fi } +check_syslinux_select(){ + if [[ ! -f ${boot}/x86_64/vmlinuz ]] ; then + msg2 "Configuring syslinux for i686 architecture only ..." + sed -e "s/select.cfg/i686_inc.cfg/g" -i "$1/miso.cfg" + fi +} + check_syslinux_nonfree(){ msg2 "Configuring syslinux menu ..." sed -e "/LABEL nonfree/,/^$/d" -i "$1/miso_sys_i686.cfg" @@ -133,6 +140,8 @@ prepare_syslinux(){ for conf in $2/*.cfg; do vars_to_boot_conf "${conf}" done + # Check for dual-arch + check_syslinux_select "$2" if ! ${nonfree_mhwd};then check_syslinux_nonfree "$2" fi