diff options
Diffstat (limited to 'resources')
-rw-r--r-- | resources/grub/config/menuentries/common.cfg | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/resources/grub/config/menuentries/common.cfg b/resources/grub/config/menuentries/common.cfg index e8a32e1..fa07e95 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' |