From 903fac5e654bd7f0db210aea1de00effbf7db413 Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Thu, 3 Mar 2016 21:09:33 +0100 Subject: grub.cfg: re-add last resort method to boot an installed distro --- resources/grub/config/menuentries/common.cfg | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'resources') diff --git a/resources/grub/config/menuentries/common.cfg b/resources/grub/config/menuentries/common.cfg index 9a11981c..80a95cbc 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 -- cgit v1.2.3-70-g09d2