summaryrefslogtreecommitdiffstats
path: root/resources
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-08-16 16:29:54 (EDT)
committer Francis Rowe <info@gluglug.org.uk>2015-08-16 16:29:54 (EDT)
commit7cf4e3d3d1da8162a344f1b9d574c68445569329 (patch)
tree930dd357cc40e873b49d37a801e2afed08682ed7 /resources
parentee9f1bd4dc64786026c34267919441266c49c039 (diff)
downloadlibreboot-7cf4e3d3d1da8162a344f1b9d574c68445569329.zip
libreboot-7cf4e3d3d1da8162a344f1b9d574c68445569329.tar.gz
libreboot-7cf4e3d3d1da8162a344f1b9d574c68445569329.tar.bz2
grub.cfg: re-add missing if check for initrd.img
Diffstat (limited to 'resources')
-rw-r--r--resources/grub/config/menuentries/common.cfg4
1 files changed, 3 insertions, 1 deletions
diff --git a/resources/grub/config/menuentries/common.cfg b/resources/grub/config/menuentries/common.cfg
index 683fbc8..e019d04 100644
--- a/resources/grub/config/menuentries/common.cfg
+++ b/resources/grub/config/menuentries/common.cfg
@@ -15,7 +15,9 @@ menuentry 'Load Operating System' {
for path in "" "/boot"; do
if [ -f "${path}/vmlinuz" ]; then
linux ${path}/vmlinuz root=/dev/sda1 rw
- initrd ${path}/initrd.img
+ if [ -f "${path}/initrd.img" ]; then
+ initrd ${path}/initrd.img
+ fi
fi
done
}