summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbuilder/dnbd3-rootfs/hooks/pre-mount/prepare-root-partition.sh4
1 files changed, 2 insertions, 2 deletions
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 c0fbfdca..c7b2c1a5 100755
--- a/builder/dnbd3-rootfs/hooks/pre-mount/prepare-root-partition.sh
+++ b/builder/dnbd3-rootfs/hooks/pre-mount/prepare-root-partition.sh
@@ -3,8 +3,8 @@ source "/usr/lib/utils.sh"
# 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" \
- --image "$SLX_DNBD3_IMAGE" --device "$SLX_DNBD3_DEVICE" --rid \
- "$SLX_DNBD3_RID"
+ --image "${SLX_SERVER_BASE}${SLX_DNBD3_IMAGE}" --device \
+ "$SLX_DNBD3_DEVICE" --rid "$SLX_DNBD3_RID"
then
warn "Failed to connect $SLX_DNBD3_IMAGE from $SLX_DNBD3_SERVER to $SLX_DNBD3_DEVICE"
emergency_shell -n "Error in $0"