summaryrefslogtreecommitdiffstats
path: root/builder/dnbd3-rootfs/hooks/pre-mount/prepare-root-partition.sh
diff options
context:
space:
mode:
Diffstat (limited to 'builder/dnbd3-rootfs/hooks/pre-mount/prepare-root-partition.sh')
-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 ad227bcc..63ef7d1f 100755
--- a/builder/dnbd3-rootfs/hooks/pre-mount/prepare-root-partition.sh
+++ b/builder/dnbd3-rootfs/hooks/pre-mount/prepare-root-partition.sh
@@ -28,9 +28,9 @@ local nbd_device='/dev/nbd0'
systemd-preserve-process-marker qemu-nbd --connect="$nbd_device" \
"$SLX_DNBD3_DEVICE" --read-only
-if [ -n $SLX_SYSTEM_PARTITION_LABEL ]; then
+if [ -n $SLX_SYSTEM_PARTITION_IDENTIFIER ]; then
local read_only_partition="$(utils.create_partition_via_offset \
- "$nbd_device" "$SLX_SYSTEM_PARTITION_LABEL")"
+ "$nbd_device" "$SLX_SYSTEM_PARTITION_IDENTIFIER")"
else # assume raw disk
local read_only_partition="$nbd_device"
fi