libreboot

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 7cf4e3d3d1da8162a344f1b9d574c68445569329
parent ee9f1bd4dc64786026c34267919441266c49c039
Author: Francis Rowe <info@gluglug.org.uk>
Date:   Sun, 16 Aug 2015 21:29:54 +0100

grub.cfg: re-add missing if check for initrd.img

Diffstat:
resources/grub/config/menuentries/common.cfg | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 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 }