diff options
| author | torben | 2016-01-28 15:14:28 +0100 |
|---|---|---|
| committer | torben | 2016-01-28 15:14:28 +0100 |
| commit | e16f4fe103229e973108329c6a6ee2263b131dda (patch) | |
| tree | 91fe57f04fbb04b19dc5d6f97d1827cd70caec7d /builder/dnbd3-rootfs | |
| parent | merge (diff) | |
| download | systemd-init-e16f4fe103229e973108329c6a6ee2263b131dda.tar.gz systemd-init-e16f4fe103229e973108329c6a6ee2263b131dda.tar.xz systemd-init-e16f4fe103229e973108329c6a6ee2263b131dda.zip | |
Fix typos.
Diffstat (limited to 'builder/dnbd3-rootfs')
| -rwxr-xr-x | builder/dnbd3-rootfs/hooks/prepare-root-partition.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/builder/dnbd3-rootfs/hooks/prepare-root-partition.sh b/builder/dnbd3-rootfs/hooks/prepare-root-partition.sh index b9355cc3..cdd8c2f4 100755 --- a/builder/dnbd3-rootfs/hooks/prepare-root-partition.sh +++ b/builder/dnbd3-rootfs/hooks/prepare-root-partition.sh @@ -36,15 +36,16 @@ if [[ $return_code != 0 ]]; then exit 1 fi # endregion + # region scan partitions read_only_device="" if ! qemu-img info --output json "$SLX_DNBD3_DEVICE" | grep '"format": "raw"' then read_only_device="$(container-unpack-xmount $SLX_DNBD3_DEVICE)" else - # workaround to detect partitions on raw disks - # can be omited when the dnbd3 kernel module supports it (like the nbd - # kernel module with parameter 'max_part') + # Workaround to detect partitions on raw disks can be omitted when the + # dnbd3 kernel module supports it (like the nbd kernel module with + # parameter "max_part"). loop_device="$(losetup -f)" losetup "$loop_device" "$SLX_DNBD3_DEVICE" --partscan read_only_device="$loop_device" |
