From 70669230532955e6386253f203787a1740152c94 Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Sun, 22 Feb 2015 20:04:14 +0000 Subject: grub.cfg: add syslinux_configfile menuentry for ahci0 --- resources/grub/config/menuentries/common.cfg | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'resources/grub/config/menuentries') diff --git a/resources/grub/config/menuentries/common.cfg b/resources/grub/config/menuentries/common.cfg index c06f24d2..f107a6d8 100644 --- a/resources/grub/config/menuentries/common.cfg +++ b/resources/grub/config/menuentries/common.cfg @@ -19,6 +19,27 @@ menuentry 'Load Operating System' { initrd /initrd.img fi } +menuentry 'Parse ISOLINUX menu (ahci0)' { + insmod ahci + insmod part_msdos + insmod part_gpt + for x in (ahci0,1) (ahci0,2) (ahci0,3) (ahci0,4); do + set root=$x + if [ -f "/isolinux/isolinux.cfg" ] ; then + syslinux_configfile -i /isolinux/isolinux.cfg + elif [ -f "/syslinux/syslinux.cfg" ] ; then + syslinux_configfile -i /syslinux/syslinux.cfg + elif [ -f "/boot/isolinux/isolinux.cfg" ] ; then + syslinux_configfile -i /boot/isolinux/isolinux.cfg + elif [ -f "/boot/syslinux/syslinux.cfg" ] ; then + syslinux_configfile -i /boot/syslinux/syslinux.cfg + elif [ -f "/menu.cfg" ] ; then + syslinux_configfile -i /menu.cfg + elif [ -f "/txt.cfg" ] ; then + syslinux_configfile -i /txt.cfg + fi + done +} menuentry 'Parse ISOLINUX menu (USB)' { insmod usbms insmod part_msdos -- cgit v1.2.3-70-g09d2