aboutsummaryrefslogtreecommitdiff
path: root/resources/grub/config
diff options
context:
space:
mode:
authorLeah Woods <info@minifree.org>2016-05-21 07:28:34 +0100
committerLeah Woods <info@minifree.org>2016-05-21 07:28:34 +0100
commit2df038d5f1a841d82ca9bd4123e516fd514921f2 (patch)
tree5b1f66583388293b18993ab6f5a0262bf6f3a38d /resources/grub/config
parent77c90c894f7433a0117c481867414cb16fa7b3cc (diff)
downloadlibrebootfr-2df038d5f1a841d82ca9bd4123e516fd514921f2.tar.gz
librebootfr-2df038d5f1a841d82ca9bd4123e516fd514921f2.zip
grub.cfg: Also search on ATA devices (for GA-G41M-ES2L which uses IDE emu)
Diffstat (limited to 'resources/grub/config')
-rw-r--r--resources/grub/config/menuentries/common.cfg12
1 files changed, 12 insertions, 0 deletions
diff --git a/resources/grub/config/menuentries/common.cfg b/resources/grub/config/menuentries/common.cfg
index ca8c691c..103d0972 100644
--- a/resources/grub/config/menuentries/common.cfg
+++ b/resources/grub/config/menuentries/common.cfg
@@ -52,6 +52,7 @@ menuentry 'Load Operating System (incl. fully encrypted disks) [o]' --hotkey='o
# 1) raw devices and MBR/GPT partitions
search_grub ahci
+ search_grub ata
# 2) LVM and RAID which might be used accross multiple devices
lvm="lvm/matrix-rootvol lvm/matrix-boot"
raid="md/0 md/1 md/2 md/3 md/4 md/5 md/6 md/7 md/8 md/9"
@@ -89,6 +90,17 @@ menuentry 'Load Operating System (incl. fully encrypted disks) [o]' --hotkey='o
fi
fi
done
+
+ # Last resort (for GA-G41-ES2L which uses IDE emulation mode for SATA)
+ set root=ata0,1
+ for p in / /boot/; do
+ if [ -f "${p}vmlinuz" ]; then
+ linux ${p}vmlinuz root=/dev/sda1 rw
+ if [ -f "${p}initrd.img" ]; then
+ initrd ${p}initrd.img
+ fi
+ fi
+ done
}
menuentry 'Search ISOLINUX menu (AHCI) [a]' --hotkey='a' {
search_isolinux ahci