aboutsummaryrefslogtreecommitdiff
path: root/resources/grub
diff options
context:
space:
mode:
Diffstat (limited to 'resources/grub')
-rw-r--r--resources/grub/config/menuentries/common.cfg13
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)' {