diff options
author | Francis Rowe <info@gluglug.org.uk> | 2015-02-22 20:04:14 +0000 |
---|---|---|
committer | Francis Rowe <info@gluglug.org.uk> | 2015-02-22 20:04:14 +0000 |
commit | 70669230532955e6386253f203787a1740152c94 (patch) | |
tree | 63297c153a85e17350c08c701e3ee0cfc245a49e /resources/grub | |
parent | 86d17f53f47d2f131c094f16d49194344ac8e199 (diff) | |
download | librebootfr-70669230532955e6386253f203787a1740152c94.tar.gz librebootfr-70669230532955e6386253f203787a1740152c94.zip |
grub.cfg: add syslinux_configfile menuentry for ahci0
Diffstat (limited to 'resources/grub')
-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 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 |