diff options
author | Jonathan Bauer | 2020-08-27 15:59:44 +0200 |
---|---|---|
committer | Jonathan Bauer | 2020-08-27 15:59:44 +0200 |
commit | 9cb8dc8c3fa187db7c51d0e59e90dd2086743554 (patch) | |
tree | 9957b92e6720cc031e358c00aa077018992ec7e1 | |
parent | [slx-network] fix bad variable usage (diff) | |
download | systemd-init-9cb8dc8c3fa187db7c51d0e59e90dd2086743554.tar.gz systemd-init-9cb8dc8c3fa187db7c51d0e59e90dd2086743554.tar.xz systemd-init-9cb8dc8c3fa187db7c51d0e59e90dd2086743554.zip |
[dnbd3-rootfs] formatting
-rwxr-xr-x | modules.d/dnbd3-rootfs/hooks/fetch-config.sh | 22 |
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 |