summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmodules.d/dnbd3-rootfs/hooks/fetch-config.sh22
1 files changed, 11 insertions, 11 deletions
diff --git a/modules.d/dnbd3-rootfs/hooks/fetch-config.sh b/modules.d/dnbd3-rootfs/hooks/fetch-config.sh
index 2fa1c78c..d2e148e8 100755
--- a/modules.d/dnbd3-rootfs/hooks/fetch-config.sh
+++ b/modules.d/dnbd3-rootfs/hooks/fetch-config.sh
@@ -10,15 +10,15 @@ slx_server_base="$(getarg slxbase=)"
# if no slxsrv was specified, use the server the kernel was
# downloaded from as fallback. Mostly for legacy PXE boot.
if [ -z "$slx_server" ]; then
- slx_server="$(getarg BOOT_IMAGE= | awk -F[/:] '{print $4}')"
+ slx_server="$(getarg BOOT_IMAGE= | awk -F[/:] '{print $4}')"
fi
if [ -z "$slx_server" ]; then
- # use tftp server from ip parameter
- slx_server="$(getarg ip= | awk -F: '{print $2}' )"
+ # use tftp server from ip parameter
+ slx_server="$(getarg ip= | awk -F: '{print $2}' )"
fi
if [ -z "$slx_server" ]; then
- # we have a problem :/
- emergency_shell "Failed to determine SLX server to fetch config from."
+ # we have a problem :/
+ emergency_shell "Failed to determine SLX server to fetch config from."
fi
# build config_url
@@ -38,21 +38,21 @@ echo "Downloading '$config_url'..."
slx-tools download_retry -s "$config_url" > "$config_path"
if [ ! -s "$config_path" ] ; then
- warn "Downloading OpenSLX configuration file from '$config_url' failed with: $return_code"
- emergency_shell "CRITICAL: System unusable."
+ warn "Downloading OpenSLX configuration file from '$config_url' failed with: $return_code"
+ emergency_shell "CRITICAL: System unusable."
fi
if ! ash -n "$config_path"; then
- warn "Downloaded OpenSLX configuration failed syntax check!"
- emergency_shell "CRITICAL: System unusable."
+ warn "Downloaded OpenSLX configuration failed syntax check!"
+ emergency_shell "CRITICAL: System unusable."
fi
# remember kcl server and base
{
echo "SLX_KCL_SERVERS='$slx_server'"
echo "SLX_BASE_PATH='$slx_server_base'"
- echo "# Config fetched from $config_url"
- echo "CONFIG_DOWNLOAD_TIME=$(sed -r 's/^([0-9]+)\.([0-9]+).*$/\1\2/' /proc/uptime)"
+ echo "# Config fetched from $config_url"
+ echo "CONFIG_DOWNLOAD_TIME=$(sed -r 's/^([0-9]+)\.([0-9]+).*$/\1\2/' /proc/uptime)"
echo '#_RCONFIG_TAG'
} > /etc/openslx