diff options
author | Francis 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) |
commit | 7cf4e3d3d1da8162a344f1b9d574c68445569329 (patch) | |
tree | 930dd357cc40e873b49d37a801e2afed08682ed7 /resources/grub/config/menuentries/common.cfg | |
parent | ee9f1bd4dc64786026c34267919441266c49c039 (diff) | |
download | libreboot-7cf4e3d3d1da8162a344f1b9d574c68445569329.zip libreboot-7cf4e3d3d1da8162a344f1b9d574c68445569329.tar.gz libreboot-7cf4e3d3d1da8162a344f1b9d574c68445569329.tar.bz2 |
grub.cfg: re-add missing if check for initrd.img
Diffstat (limited to 'resources/grub/config/menuentries/common.cfg')
-rw-r--r-- | resources/grub/config/menuentries/common.cfg | 4 |
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 } |