summaryrefslogtreecommitdiffstats
path: root/resources/grub/config/menuentries
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2014-11-22 21:13:56 (EST)
committer Francis Rowe <info@gluglug.org.uk>2014-11-22 21:13:56 (EST)
commit78271d7e537cd3dfa946a842cb59fa3b1cd1763b (patch)
tree4a823ddb248ae2ee42d353c293f325afa59850e6 /resources/grub/config/menuentries
parent683cf9bc88662af683e1906d16b943998e8ee2f7 (diff)
downloadlibreboot-78271d7e537cd3dfa946a842cb59fa3b1cd1763b.zip
libreboot-78271d7e537cd3dfa946a842cb59fa3b1cd1763b.tar.gz
libreboot-78271d7e537cd3dfa946a842cb59fa3b1cd1763b.tar.bz2
grub.cfg: Only load initrd.img if it exists. Add rw to linux line
For ProteanOS
Diffstat (limited to 'resources/grub/config/menuentries')
-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'