diff options
-rw-r--r-- | resources/grub/config/menuentries/common.cfg | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/resources/grub/config/menuentries/common.cfg b/resources/grub/config/menuentries/common.cfg index c06f24d..f107a6d 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 |