summaryrefslogtreecommitdiffstats
path: root/resources/grub/config/menuentries
diff options
context:
space:
mode:
Diffstat (limited to 'resources/grub/config/menuentries')
-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 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
}