summaryrefslogtreecommitdiffstats
path: root/resources/grub/config/menuentries/common.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'resources/grub/config/menuentries/common.cfg')
-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 c6b5109..3ac2bf4 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)' {