summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Schwaighofer <lukas@schwaighofer.name>2016-06-07 15:49:42 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2016-07-29 05:40:22 +0000
commitdef9e9200d517cd1425cbc8080d83046d7cfa113 (patch)
tree189e1a17dd32fab0bb92aa064131b6d61e845465
parentCorrecting lb_config manpage as config files actually require the .conf suffix. (diff)
downloadsystem-config-def9e9200d517cd1425cbc8080d83046d7cfa113.tar.xz
system-config-def9e9200d517cd1425cbc8080d83046d7cfa113.zip
Exporting variables set in config files (Closes: #832818).
If the variables are not exported, they are not available in the components. Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
-rwxr-xr-xfrontend/live-config2
1 files changed, 2 insertions, 0 deletions
diff --git a/frontend/live-config b/frontend/live-config
index e46e311..0f037e1 100755
--- a/frontend/live-config
+++ b/frontend/live-config
@@ -41,6 +41,7 @@ export _IP_SEPARATOR _PROC_OPTIONS
_COMPONENTS="$(ls /lib/live/config/*)"
# Reading configuration files from filesystem and live-media
+set -o allexport
for _FILE in /etc/live/config.conf /etc/live/config.conf.d/*.conf \
/lib/live/mount/medium/live/config.conf /lib/live/mount/medium/live/config.conf.d/*.conf \
/lib/live/mount/persistence/*/live/config.conf /lib/live/mount/persistence/*/live/config.conf.d/*.conf
@@ -50,6 +51,7 @@ do
. "${_FILE}"
fi
done
+set +o allexport
Cmdline ()
{