diff options
| -rwxr-xr-x | builder/dnbd3-rootfs/hooks/pre-mount/fetch-config.sh | 2 | ||||
| -rwxr-xr-x | builder/dnbd3-rootfs/hooks/pre-mount/prepare-root-partition.sh | 4 |
2 files changed, 0 insertions, 6 deletions
diff --git a/builder/dnbd3-rootfs/hooks/pre-mount/fetch-config.sh b/builder/dnbd3-rootfs/hooks/pre-mount/fetch-config.sh index 7922ce2a..411b2f7d 100755 --- a/builder/dnbd3-rootfs/hooks/pre-mount/fetch-config.sh +++ b/builder/dnbd3-rootfs/hooks/pre-mount/fetch-config.sh @@ -9,8 +9,6 @@ if [[ $return_code != 0 ]]; then warn "Downloading OpenSLX configuration file from \"${SLX_SERVER}${SLX_SERVER_BASE}${configuration_file_name}\" failed. Return code: $return_code" emergency_shell -n "$0" return 1 -else - return 0 fi source "/$configuration_file_name" mkdir --parents "$SLX_CONFIGURATION_LOCATION" diff --git a/builder/dnbd3-rootfs/hooks/pre-mount/prepare-root-partition.sh b/builder/dnbd3-rootfs/hooks/pre-mount/prepare-root-partition.sh index 1e76f2ea..7d942ca3 100755 --- a/builder/dnbd3-rootfs/hooks/pre-mount/prepare-root-partition.sh +++ b/builder/dnbd3-rootfs/hooks/pre-mount/prepare-root-partition.sh @@ -1,9 +1,5 @@ source "/usr/lib/utils.sh" -declare -rg DNBD3_IMAGE="archLinux.vdi" -declare -rg DNBD3_RID="0" -declare -rg DNBD3_DEVICE="/dev/dnbd0" - # Close previous connections to be able to run this script many times. dnbd3-client --device "$SLX_DNBD3_DEVICE" --close && \ if ! systemd-preserve-process-marker dnbd3-client --host "$SLX_DNBD3_SERVERS" \ |
