Don't use addons in GRUB if NO_ADDONS is set
[grml-live.git] / templates / boot / grub / grub.cfg
index 40faccc..bdcea7f 100644 (file)
@@ -5,7 +5,9 @@ insmod regexp
 
 for config in /boot/grub/*_default.cfg ; do source "$config" ; done
 for config in /boot/grub/*_options.cfg ; do source "$config" ; done
-source /boot/grub/addons.cfg
+if [ -f /boot/grub/addons.cfg ] ; then
+  source "/boot/grub/addons.cfg"
+fi
 
 source /boot/grub/footer.cfg
 # EOF