summaryrefslogtreecommitdiffstats
path: root/resources/grub/config/menuentries
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-02-22 15:04:14 (EST)
committer Francis Rowe <info@gluglug.org.uk>2015-02-22 15:04:14 (EST)
commit70669230532955e6386253f203787a1740152c94 (patch)
tree63297c153a85e17350c08c701e3ee0cfc245a49e /resources/grub/config/menuentries
parent86d17f53f47d2f131c094f16d49194344ac8e199 (diff)
downloadlibreboot-70669230532955e6386253f203787a1740152c94.zip
libreboot-70669230532955e6386253f203787a1740152c94.tar.gz
libreboot-70669230532955e6386253f203787a1740152c94.tar.bz2
grub.cfg: add syslinux_configfile menuentry for ahci0
Diffstat (limited to 'resources/grub/config/menuentries')
-rw-r--r--resources/grub/config/menuentries/common.cfg21
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