diff options
author | Francis Rowe <info@gluglug.org.uk> | 2016-03-03 21:09:33 +0100 |
---|---|---|
committer | Francis Rowe <info@gluglug.org.uk> | 2016-03-03 21:09:33 +0100 |
commit | 903fac5e654bd7f0db210aea1de00effbf7db413 (patch) | |
tree | 9d8650c6add18011cd994bb007882511756c984e /resources/grub/config | |
parent | d105b4a8b74645d5936cf8a51b1517f3ba89fd26 (diff) | |
download | librebootfr-903fac5e654bd7f0db210aea1de00effbf7db413.tar.gz librebootfr-903fac5e654bd7f0db210aea1de00effbf7db413.zip |
grub.cfg: re-add last resort method to boot an installed distro
Diffstat (limited to 'resources/grub/config')
-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 |