diff options
author | Jonathan Bauer | 2020-06-04 10:29:37 +0200 |
---|---|---|
committer | Jonathan Bauer | 2020-06-05 17:26:28 +0200 |
commit | b03d605e12bef084c6157cea45c1283bd613a97f (patch) | |
tree | 5f948418496f26d2be674553ee5b3f5f15bcead2 /modules.d/dnbd3-rootfs/hooks | |
parent | [dnbd3-rootfs] warn -> echo (diff) | |
download | systemd-init-b03d605e12bef084c6157cea45c1283bd613a97f.tar.gz systemd-init-b03d605e12bef084c6157cea45c1283bd613a97f.tar.xz systemd-init-b03d605e12bef084c6157cea45c1283bd613a97f.zip |
[dnbd3-rootfs] rename container_unpack_{xlosetup => xloop}
Diffstat (limited to 'modules.d/dnbd3-rootfs/hooks')
-rwxr-xr-x | modules.d/dnbd3-rootfs/hooks/prepare-root-partition.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules.d/dnbd3-rootfs/hooks/prepare-root-partition.sh b/modules.d/dnbd3-rootfs/hooks/prepare-root-partition.sh index 88a4b70b..0e86cce0 100755 --- a/modules.d/dnbd3-rootfs/hooks/prepare-root-partition.sh +++ b/modules.d/dnbd3-rootfs/hooks/prepare-root-partition.sh @@ -34,7 +34,7 @@ container_unpack_xmount() { echo "$out_device" } -container_unpack_losetup() { +container_unpack_xloop() { local in_device="$1" local out_device="$(losetup -f)" if ! losetup -r -t QCOW "$out_device" "$in_device" --partscan; then @@ -98,7 +98,7 @@ if [ -z "$SLX_QCOW_HANDLER" ]; then echo "SLX_QCOW_HANDLER='$SLX_QCOW_HANDLER'" >> /etc/openslx fi if [ "$SLX_QCOW_HANDLER" = "kernel" ]; then - read_only_device="$(container_unpack_losetup "$_dnbd3_dev")" + read_only_device="$(container_unpack_xloop "$_dnbd3_dev")" fi if [ -z "$read_only_device" ] || [ "$SLX_QCOW_HANDLER" = "xmount" ]; then read_only_device="$(container_unpack_xmount "$_dnbd3_dev")" |