Support usage of boot/addons via symlink to corresponding git repository
authorMichael Prokop <mika@grml.org>
Fri, 17 Jul 2020 19:57:46 +0000 (21:57 +0200)
committerMichael Prokop <mika@grml.org>
Fri, 17 Jul 2020 19:57:46 +0000 (21:57 +0200)
It's annoying when you are running grml-live from the git repository,
as the installed grml-live-addons package doesn't matter then,
because the templates are pointing to the git repository.
This can be handled via a symlink, support its usage and mention
it in the docs.

README.md
grml-live

index 12d6a91..218b1bb 100644 (file)
--- a/README.md
+++ b/README.md
@@ -25,4 +25,5 @@ of an installed `grml-live` package:
     # export SCRIPTS_DIRECTORY=$(pwd)/scripts
     # export LIVE_CONF=$(pwd)/etc/grml/grml-live.conf
     # export TEMPLATE_DIRECTORY=$(pwd)/templates
+    # ln -s ../../../grml-live-grml/templates/boot/addons templates/boot/  # optional
     # ./grml-live -s sid -a amd64 -c GRMLBASE,GRML_FULL,AMD64
index 5cd5880..52132d0 100755 (executable)
--- a/grml-live
+++ b/grml-live
@@ -1123,7 +1123,7 @@ if [ "$ARCH" = i386 ] || [ "$ARCH" = amd64 ] ; then
       log   "Skipping installation of boot addons as requested via \$NO_ADDONS."
       einfo "Skipping installation of boot addons as requested via \$NO_ADDONS."; eend 0
     else
-      if ! [ -d "$TEMPLATE_DIRECTORY"/boot/addons ] ; then
+      if ! [ -r "$TEMPLATE_DIRECTORY"/boot/addons ] ; then
         log   "Boot addons not found, skipping therefore. (Consider installing package grml-live-addons)"
         ewarn "Boot addons not found, skipping therefore. (Consider installing package grml-live-addons)" ; eend 0
       else