aboutsummaryrefslogtreecommitdiff
path: root/resources/grub/config/menuentries
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-01-23 03:09:57 +0000
committerFrancis Rowe <info@gluglug.org.uk>2015-01-23 03:09:57 +0000
commit3a87740b4734c0e65aa8fbcfcf418ee99f006a9a (patch)
treeb7424d8eea2e1ac63064c9698534046eb82a91bb /resources/grub/config/menuentries
parent9ecb70ac6e6b9a2610ae536d622e2cdddfe524e8 (diff)
downloadlibrebootfr-3a87740b4734c0e65aa8fbcfcf418ee99f006a9a.tar.gz
librebootfr-3a87740b4734c0e65aa8fbcfcf418ee99f006a9a.zip
grub.cfg: Add ahci1 to list of devices for optical drive
Docking station on X200 is SATA/AHCI.
Diffstat (limited to 'resources/grub/config/menuentries')
-rw-r--r--resources/grub/config/menuentries/common.cfg26
1 files changed, 14 insertions, 12 deletions
diff --git a/resources/grub/config/menuentries/common.cfg b/resources/grub/config/menuentries/common.cfg
index 5299da27..ed7ca027 100644
--- a/resources/grub/config/menuentries/common.cfg
+++ b/resources/grub/config/menuentries/common.cfg
@@ -37,18 +37,20 @@ menuentry 'Parse ISOLINUX menu (USB)' {
done
}
menuentry 'Parse ISOLINUX menu (CD)' {
- set root='ata0'
- if [ -f "/menu.cfg" ] ; then
- syslinux_configfile -i /menu.cfg
- elif [ -f "/txt.cfg" ] ; then
- syslinux_configfile -i /txt.cfg
- elif [ -f "/isolinux/menu.cfg" ] ; then
- syslinux_configfile -i /isolinux/menu.cfg
- elif [ -f "/isolinux/txt.cfg" ] ; then
- syslinux_configfile -i /isolinux/txt.cfg
- elif [ -f "/isolinux/isolinux.cfg" ] ; then
- syslinux_configfile -i /isolinux/isolinux.cfg
- fi
+ for x in (ata0) (ahci1); do
+ set root=$x
+ if [ -f "/menu.cfg" ] ; then
+ syslinux_configfile -i /menu.cfg
+ elif [ -f "/txt.cfg" ] ; then
+ syslinux_configfile -i /txt.cfg
+ elif [ -f "/isolinux/menu.cfg" ] ; then
+ syslinux_configfile -i /isolinux/menu.cfg
+ elif [ -f "/isolinux/txt.cfg" ] ; then
+ syslinux_configfile -i /isolinux/txt.cfg
+ elif [ -f "/isolinux/isolinux.cfg" ] ; then
+ syslinux_configfile -i /isolinux/isolinux.cfg
+ fi
+ done
}
menuentry 'Switch to grubtest.cfg' {
set root='cbfsdisk'