diff options
author | Francis Rowe <info@gluglug.org.uk> | 2014-11-23 02:13:56 +0000 |
---|---|---|
committer | Francis Rowe <info@gluglug.org.uk> | 2014-11-23 02:13:56 +0000 |
commit | 78271d7e537cd3dfa946a842cb59fa3b1cd1763b (patch) | |
tree | 4a823ddb248ae2ee42d353c293f325afa59850e6 /resources/grub | |
parent | 683cf9bc88662af683e1906d16b943998e8ee2f7 (diff) | |
download | librebootfr-78271d7e537cd3dfa946a842cb59fa3b1cd1763b.tar.gz librebootfr-78271d7e537cd3dfa946a842cb59fa3b1cd1763b.zip |
grub.cfg: Only load initrd.img if it exists. Add rw to linux line
For ProteanOS
Diffstat (limited to 'resources/grub')
-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 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' |