From a260be1a413fb40e974c9d55f3d7816359ff330c Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Tue, 2 Jun 2020 12:41:53 +0200 Subject: [dnbd3-rootfs] use xlosetup for dnbd3 image --- modules.d/dnbd3-rootfs/hooks/prepare-root-partition.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules.d/dnbd3-rootfs/hooks/prepare-root-partition.sh b/modules.d/dnbd3-rootfs/hooks/prepare-root-partition.sh index 88a4b70b..a579d49d 100755 --- a/modules.d/dnbd3-rootfs/hooks/prepare-root-partition.sh +++ b/modules.d/dnbd3-rootfs/hooks/prepare-root-partition.sh @@ -37,7 +37,7 @@ container_unpack_xmount() { container_unpack_losetup() { local in_device="$1" local out_device="$(losetup -f)" - if ! losetup -r -t QCOW "$out_device" "$in_device" --partscan; then + if ! xlosetup -r -t QCOW "$out_device" "$in_device" --partscan; then warn "Failed to attach '$in_device' to '$out_device'." return fi -- cgit v1.2.3-55-g7522