diff options
author | Francis Rowe <info@gluglug.org.uk> | 2015-08-16 21:29:54 +0100 |
---|---|---|
committer | Francis Rowe <info@gluglug.org.uk> | 2015-08-16 21:29:54 +0100 |
commit | 7cf4e3d3d1da8162a344f1b9d574c68445569329 (patch) | |
tree | 930dd357cc40e873b49d37a801e2afed08682ed7 /resources | |
parent | ee9f1bd4dc64786026c34267919441266c49c039 (diff) | |
download | librebootfr-7cf4e3d3d1da8162a344f1b9d574c68445569329.tar.gz librebootfr-7cf4e3d3d1da8162a344f1b9d574c68445569329.zip |
grub.cfg: re-add missing if check for initrd.img
Diffstat (limited to 'resources')
-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 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 } |