summaryrefslogtreecommitdiffstats
path: root/resources/grub
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2016-03-03 15:09:33 (EST)
committer Francis Rowe <info@gluglug.org.uk>2016-03-03 15:09:33 (EST)
commit903fac5e654bd7f0db210aea1de00effbf7db413 (patch)
tree9d8650c6add18011cd994bb007882511756c984e /resources/grub
parentd105b4a8b74645d5936cf8a51b1517f3ba89fd26 (diff)
downloadlibreboot-903fac5e654bd7f0db210aea1de00effbf7db413.zip
libreboot-903fac5e654bd7f0db210aea1de00effbf7db413.tar.gz
libreboot-903fac5e654bd7f0db210aea1de00effbf7db413.tar.bz2
grub.cfg: re-add last resort method to boot an installed distro
Diffstat (limited to 'resources/grub')
-rw-r--r--resources/grub/config/menuentries/common.cfg10
1 files changed, 10 insertions, 0 deletions
diff --git a/resources/grub/config/menuentries/common.cfg b/resources/grub/config/menuentries/common.cfg
index 9a11981..80a95cb 100644
--- a/resources/grub/config/menuentries/common.cfg
+++ b/resources/grub/config/menuentries/common.cfg
@@ -78,6 +78,16 @@ menuentry 'Load Operating System (incl. fully encrypted disks) [o]' --hotkey='o
for vol in ${lvm}; do
try_user_config "(${vol})"
done
+
+ # Last resort, if all else fails
+ set root=ahci0,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
}
menuentry 'Search ISOLINUX menu (AHCI) [a]' --hotkey='a' {
search_isolinux ahci