diff options
author | Jonathan Bauer | 2018-05-23 17:41:05 +0200 |
---|---|---|
committer | Jonathan Bauer | 2018-05-23 17:41:05 +0200 |
commit | d820a70ef0301a84e9afc591c7284fe2107fabbe (patch) | |
tree | 63155d670b829c7e3316a4912a86d17b867948fa | |
parent | Support for stage4 addons (diff) | |
download | systemd-init-d820a70ef0301a84e9afc591c7284fe2107fabbe.tar.gz systemd-init-d820a70ef0301a84e9afc591c7284fe2107fabbe.tar.xz systemd-init-d820a70ef0301a84e9afc591c7284fe2107fabbe.zip |
[dnbd3-rootfs] mark the remote configuration variables
-rwxr-xr-x | builder/modules.d/dnbd3-rootfs/hooks/fetch-config.sh | 3 |
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" |