summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmodules.d/dnbd3-rootfs/hooks/fetch-config.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules.d/dnbd3-rootfs/hooks/fetch-config.sh b/modules.d/dnbd3-rootfs/hooks/fetch-config.sh
index 2f075cc9..a282fa28 100755
--- a/modules.d/dnbd3-rootfs/hooks/fetch-config.sh
+++ b/modules.d/dnbd3-rootfs/hooks/fetch-config.sh
@@ -36,6 +36,7 @@ config_path="/etc/openslx.tmp"
echo "Downloading '$config_url'..."
slx-tools download_retry -s "$config_url" > "$config_path"
+return_code="$?"
if [ ! -s "$config_path" ] ; then
emergency_shell "Downloading netboot configuration file from '$config_url' failed with: $return_code"