summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Bauer2018-05-23 17:41:05 +0200
committerJonathan Bauer2018-05-23 17:41:05 +0200
commitd820a70ef0301a84e9afc591c7284fe2107fabbe (patch)
tree63155d670b829c7e3316a4912a86d17b867948fa
parentSupport for stage4 addons (diff)
downloadsystemd-init-d820a70ef0301a84e9afc591c7284fe2107fabbe.tar.gz
systemd-init-d820a70ef0301a84e9afc591c7284fe2107fabbe.tar.xz
systemd-init-d820a70ef0301a84e9afc591c7284fe2107fabbe.zip
[dnbd3-rootfs] mark the remote configuration variables
-rwxr-xr-xbuilder/modules.d/dnbd3-rootfs/hooks/fetch-config.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/builder/modules.d/dnbd3-rootfs/hooks/fetch-config.sh b/builder/modules.d/dnbd3-rootfs/hooks/fetch-config.sh
index 6b2eb93d..ad2807d3 100755
--- a/builder/modules.d/dnbd3-rootfs/hooks/fetch-config.sh
+++ b/builder/modules.d/dnbd3-rootfs/hooks/fetch-config.sh
@@ -40,6 +40,9 @@ if [[ ! -e "/etc/openslx" ]]; then
exit 1
fi
+# mark that the configuration variables came from remote
+sed -i '1i#_RCONFIG_TAG' /etc/openslx
+
# slxsrv overrides SLX_DNBD3_SERVERS if prefixed with @
[ "${slx_server#@}" != "${slx_server}" ] && sed -i "s/^SLX_DNBD3_SERVERS=.*/SLX_DNBD3_SERVERS='${slx_server#@}'/" "/etc/openslx"