diff options
author | Jonathan Bauer | 2019-10-25 13:16:34 +0200 |
---|---|---|
committer | Jonathan Bauer | 2019-10-25 13:16:34 +0200 |
commit | 5c15661dcc9d99745f5128b1aba9727fa066e6b6 (patch) | |
tree | a8c485a407201eb370b958c41b80e999a0acf60a /builder/modules.d/slx-dmsetup/scripts/dmsetup-slx-device | |
parent | more improvements (diff) | |
parent | [slx-network] wait 30sec for network (diff) | |
download | systemd-init-5c15661dcc9d99745f5128b1aba9727fa066e6b6.tar.gz systemd-init-5c15661dcc9d99745f5128b1aba9727fa066e6b6.tar.xz systemd-init-5c15661dcc9d99745f5128b1aba9727fa066e6b6.zip |
Merge branch 'master' into nobash
Diffstat (limited to 'builder/modules.d/slx-dmsetup/scripts/dmsetup-slx-device')
-rwxr-xr-x | builder/modules.d/slx-dmsetup/scripts/dmsetup-slx-device | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/builder/modules.d/slx-dmsetup/scripts/dmsetup-slx-device b/builder/modules.d/slx-dmsetup/scripts/dmsetup-slx-device index c0f6a274..1756865e 100755 --- a/builder/modules.d/slx-dmsetup/scripts/dmsetup-slx-device +++ b/builder/modules.d/slx-dmsetup/scripts/dmsetup-slx-device @@ -273,7 +273,7 @@ save_partition_info "${scratch_device##*/}" "*" "1" "$scratch_device_size" # encrypt the scratch device, if configured if [ "$crypt" -ne 0 ] && encrypt_device \ "$scratch_device" "${scratch_device##*/}-crypt" "$scratch_device_size"; then - scratch_device="${scratch_device##*/}-crypt" + scratch_device="${scratch_device}-crypt" fi writable_device_allocated="$scratch_device_size" @@ -319,7 +319,7 @@ create_pool() { # create remaining thin volumes modprobe dm-thin-pool || echo "$0: dm-thin-pool load failed, maybe builtin?" # create temporary metadata device - data_block_size=256 + data_block_size=255 # calculate number of sectors needed and check boundaries: metadata_dev_size="$(( 48 * $writable_device_size / $data_block_size / 512 ))" # Min 2MB -> 4096 sectors, max 16GB -> 33554432 sectors |