summaryrefslogtreecommitdiffstats
path: root/builder/dnbd3-rootfs/hooks/prepare-root-partition.sh
diff options
context:
space:
mode:
Diffstat (limited to 'builder/dnbd3-rootfs/hooks/prepare-root-partition.sh')
-rwxr-xr-xbuilder/dnbd3-rootfs/hooks/prepare-root-partition.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/builder/dnbd3-rootfs/hooks/prepare-root-partition.sh b/builder/dnbd3-rootfs/hooks/prepare-root-partition.sh
index 3dc22978..4fc7e2ee 100755
--- a/builder/dnbd3-rootfs/hooks/prepare-root-partition.sh
+++ b/builder/dnbd3-rootfs/hooks/prepare-root-partition.sh
@@ -15,9 +15,11 @@ logging.set_level debug
source /etc/openslx
# region find writable partition
-if [[ "$SLX_WRITABLE_DEVICE_IDENTIFIER" != "" ]] \
- && ! persistent_device=$(
- tools.find_block_device "$SLX_WRITABLE_DEVICE_IDENTIFIER")
+if [[ "$SLX_WRITABLE_DEVICE_IDENTIFIER" != "" ]] &&
+ ! persistent_device="$(
+ tools.find_block_device "$SLX_WRITABLE_DEVICE_IDENTIFIER" "" \
+ "$SLX_WRITABLE_DEVICE_IDENTIFIER_TIMEOUT"
+ )"
then
logging.warn "Failed to find unique device with identifier" \
"\"${SLX_WRITABLE_DEVICE_IDENTIFIER}\"; matched devices:" \