From 78271d7e537cd3dfa946a842cb59fa3b1cd1763b Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Sun, 23 Nov 2014 02:13:56 +0000 Subject: grub.cfg: Only load initrd.img if it exists. Add rw to linux line For ProteanOS --- resources/grub/config/menuentries/common.cfg | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'resources/grub/config') diff --git a/resources/grub/config/menuentries/common.cfg b/resources/grub/config/menuentries/common.cfg index e8a32e14..fa07e956 100644 --- a/resources/grub/config/menuentries/common.cfg +++ b/resources/grub/config/menuentries/common.cfg @@ -1,7 +1,9 @@ menuentry 'Load Operating System' { set root='ahci0,msdos1' - linux /vmlinuz root=/dev/sda1 - initrd /initrd.img + linux /vmlinuz root=/dev/sda1 rw + if [ -f "/initrd.img" ] ; then + initrd /initrd.img + fi } menuentry 'Parse ISOLINUX menu (USB)' { set root='usb0' -- cgit v1.2.3-70-g09d2