summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2014-11-23 02:13:56 +0000
committerFrancis Rowe <info@gluglug.org.uk>2014-11-23 02:13:56 +0000
commit78271d7e537cd3dfa946a842cb59fa3b1cd1763b (patch)
tree4a823ddb248ae2ee42d353c293f325afa59850e6
parent683cf9bc88662af683e1906d16b943998e8ee2f7 (diff)
grub.cfg: Only load initrd.img if it exists. Add rw to linux line
For ProteanOS
-rw-r--r--resources/grub/config/menuentries/common.cfg6
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'