summaryrefslogtreecommitdiffstats
path: root/builder/dnbd3-rootfs/hooks/fetch-config.sh
diff options
context:
space:
mode:
authortorben2016-03-01 21:12:45 +0100
committertorben2016-03-01 21:12:45 +0100
commit8702683bc2f851d1b023c035ca2268415900a846 (patch)
treeb611eed1360171e4f2e4a8d18e51a30c36014402 /builder/dnbd3-rootfs/hooks/fetch-config.sh
parentFix. (diff)
downloadsystemd-init-8702683bc2f851d1b023c035ca2268415900a846.tar.gz
systemd-init-8702683bc2f851d1b023c035ca2268415900a846.tar.xz
systemd-init-8702683bc2f851d1b023c035ca2268415900a846.zip
Fix.
Diffstat (limited to 'builder/dnbd3-rootfs/hooks/fetch-config.sh')
-rwxr-xr-xbuilder/dnbd3-rootfs/hooks/fetch-config.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/builder/dnbd3-rootfs/hooks/fetch-config.sh b/builder/dnbd3-rootfs/hooks/fetch-config.sh
index 243abae5..6d85eea8 100755
--- a/builder/dnbd3-rootfs/hooks/fetch-config.sh
+++ b/builder/dnbd3-rootfs/hooks/fetch-config.sh
@@ -2,20 +2,22 @@
# -*- coding: utf-8 -*-
# region imports
type getarg >/dev/null 2>&1 || source /lib/dracut-lib.sh
-source "/usr/lib/rebash/core.sh"
+source '/usr/lib/rebash/core.sh'
core.import exceptions
-exceptions.activate
core.import logging
# endregion
( # subshell for variable scoping
logging.set_commands_level debug
+logging.set_level debug
configuration_file_name="$(getarg slx_configuration_filename=)"
if [ -z "$configuration_file_name" ]; then
configuration_file_name='config'
fi
slx_server="$(getarg slxsrv=)"
slx_server_base="$(getarg slxbase=)"
-logging.set_level debug
+# NOTE: "getarg" sometimes returns an error code so activating exception
+# handling after it.
+exceptions.activate
logging.info 'Getting configuration file.'
IFS_backup="$IFS"