aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
}