aboutsummaryrefslogtreecommitdiff
path: root/resources/grub/config/menuentries
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-08-16 21:29:54 +0100
committerFrancis Rowe <info@gluglug.org.uk>2015-08-16 21:29:54 +0100
commit7cf4e3d3d1da8162a344f1b9d574c68445569329 (patch)
tree930dd357cc40e873b49d37a801e2afed08682ed7 /resources/grub/config/menuentries
parentee9f1bd4dc64786026c34267919441266c49c039 (diff)
downloadlibrebootfr-7cf4e3d3d1da8162a344f1b9d574c68445569329.tar.gz
librebootfr-7cf4e3d3d1da8162a344f1b9d574c68445569329.zip
grub.cfg: re-add missing if check for initrd.img
Diffstat (limited to 'resources/grub/config/menuentries')
-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 683fbc83..e019d040 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
}