summaryrefslogtreecommitdiffstats
path: root/builder
diff options
context:
space:
mode:
authortorben2015-11-20 18:39:20 +0100
committertorben2015-11-20 18:39:20 +0100
commit5c073095e706ba3c0b39a9ae2126c6c1eb86739b (patch)
tree44fa295509581e2c66c59a5c6a92442ac448c931 /builder
parentFix. (diff)
downloadsystemd-init-5c073095e706ba3c0b39a9ae2126c6c1eb86739b.tar.gz
systemd-init-5c073095e706ba3c0b39a9ae2126c6c1eb86739b.tar.xz
systemd-init-5c073095e706ba3c0b39a9ae2126c6c1eb86739b.zip
Fix pxe server config.
Diffstat (limited to 'builder')
-rwxr-xr-xbuilder/dnbd3-rootfs/hooks/pre-mount/prepare-root-partition.sh8
1 files changed, 4 insertions, 4 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 233d4640..95ee8fd1 100755
--- a/builder/dnbd3-rootfs/hooks/pre-mount/prepare-root-partition.sh
+++ b/builder/dnbd3-rootfs/hooks/pre-mount/prepare-root-partition.sh
@@ -7,16 +7,16 @@ IFS=","
local host
for host in ${SLX_DNBD3_SERVERS}; do
info "Trying host \"$host\"."
- systemd-preserve-process-marker dnbd3-client --host "$SLX_DNBD3_SERVERS" \
- --image "${SLX_SERVER_BASE}${SLX_DNBD3_IMAGE}" --device \
- "$SLX_DNBD3_DEVICE" --rid "$SLX_DNBD3_RID"
+ systemd-preserve-process-marker dnbd3-client --host "$host" --image \
+ "${SLX_SERVER_BASE#/}${SLX_DNBD3_IMAGE}" --device "$SLX_DNBD3_DEVICE" \
+ --rid "$SLX_DNBD3_RID"
local return_code="$?"
[[ $return_code == 0 ]] && break
continue
done
IFS="$IFS_backup"
if [[ $return_code != 0 ]]; then
- warn "Failed to connect \"${SLX_SERVER_BASE}${SLX_DNBD3_IMAGE}\" from one of \"$SLX_DNBD3_SERVERS\" to \"$SLX_DNBD3_DEVICE\"."
+ warn "Failed to connect \"${SLX_SERVER_BASE#/}${SLX_DNBD3_IMAGE}\" from one of \"$SLX_DNBD3_SERVERS\" to \"$SLX_DNBD3_DEVICE\"."
emergency_shell -n "Error in $0"
return 1
fi