diff options
Diffstat (limited to 'resources')
-rw-r--r-- | resources/grub/config/menuentries/common.cfg | 10 |
1 files changed, 10 insertions, 0 deletions
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 |