diff options
author | Francis Rowe <info@gluglug.org.uk> | 2015-06-05 00:38:11 +0100 |
---|---|---|
committer | Francis Rowe <info@gluglug.org.uk> | 2015-06-05 00:38:11 +0100 |
commit | 7824eb7a272a8bea7305337fa2925fdf3c72e956 (patch) | |
tree | 56911ce669ae3cdf2490237c06abf72fecd3eb3a /resources/grub | |
parent | 698e6ea2df1f04a46b3cc3621734bb49652a61c5 (diff) | |
download | librebootfr-7824eb7a272a8bea7305337fa2925fdf3c72e956.tar.gz librebootfr-7824eb7a272a8bea7305337fa2925fdf3c72e956.zip |
grub.cfg: also look for /boot/vmlinuz and /boot/initrd.img
Diffstat (limited to 'resources/grub')
-rw-r--r-- | resources/grub/config/menuentries/common.cfg | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/resources/grub/config/menuentries/common.cfg b/resources/grub/config/menuentries/common.cfg index c6b51097..3ac2bf46 100644 --- a/resources/grub/config/menuentries/common.cfg +++ b/resources/grub/config/menuentries/common.cfg @@ -14,9 +14,16 @@ menuentry 'Load Operating System' { done set root='ahci0,1' - linux /vmlinuz root=/dev/sda1 rw - if [ -f "/initrd.img" ] ; then - initrd /initrd.img + if [ -f "/vmlinuz" ] ; then + linux /vmlinuz root=/dev/sda1 rw + if [ -f "/initrd.img" ] ; then + initrd /initrd.img + fi + elif [ -f "/boot/vmlinuz" ] ; then + linux /boot/vmlinuz root=/dev/sda1 rw + if [ -f "/boot/initrd.img" ] ; then + initrd /boot/initrd.img + fi fi } menuentry 'Parse ISOLINUX menu (ahci0)' { |