From d44545f3e21fb5a1e8415f4eac76ecd9d0555ee4 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Mon, 18 Nov 2019 14:57:11 +0100 Subject: [slx-dmsetup] fix wrong size used --- builder/modules.d/slx-dmsetup/scripts/dmsetup-slx-device | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/modules.d/slx-dmsetup/scripts/dmsetup-slx-device b/builder/modules.d/slx-dmsetup/scripts/dmsetup-slx-device index 89dab344..5d5ec267 100755 --- a/builder/modules.d/slx-dmsetup/scripts/dmsetup-slx-device +++ b/builder/modules.d/slx-dmsetup/scripts/dmsetup-slx-device @@ -143,7 +143,7 @@ ramdisk_fallback() { fi fi - local qcow_size_in_kb="$(( writable_device_size / 2 ))" + local qcow_size_in_kb="$(( read_only_device_size / 2 ))" local ram_size_in_kb="$(awk '/MemTotal/ {printf("%d\n", $2 )}' /proc/meminfo)" # Use the qcow size + half the RAM as tmpfs size. -- cgit v1.2.3-55-g7522