From 7cf4e3d3d1da8162a344f1b9d574c68445569329 Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Sun, 16 Aug 2015 21:29:54 +0100 Subject: grub.cfg: re-add missing if check for initrd.img --- resources/grub/config/menuentries/common.cfg | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'resources/grub/config/menuentries') 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 } -- cgit v1.2.3-70-g09d2