libreboot

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 903fac5e654bd7f0db210aea1de00effbf7db413
parent d105b4a8b74645d5936cf8a51b1517f3ba89fd26
Author: Francis Rowe <info@gluglug.org.uk>
Date:   Thu,  3 Mar 2016 21:09:33 +0100

grub.cfg: re-add last resort method to boot an installed distro

Diffstat:
resources/grub/config/menuentries/common.cfg | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git 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