summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Bauer2019-11-19 13:25:26 +0100
committerJonathan Bauer2019-11-19 13:25:26 +0100
commit80e4b74812634e8824e05c5380c7bca1964ba8a2 (patch)
tree277799540520970563c516d7395cf1e385f74a3f
parentadd dm-zero (diff)
downloadsystemd-init-80e4b74812634e8824e05c5380c7bca1964ba8a2.tar.gz
systemd-init-80e4b74812634e8824e05c5380c7bca1964ba8a2.tar.xz
systemd-init-80e4b74812634e8824e05c5380c7bca1964ba8a2.zip
modprobe dm-zero
-rwxr-xr-xbuilder/modules.d/slx-dmsetup/scripts/dmsetup-slx-device2
1 files changed, 1 insertions, 1 deletions
diff --git a/builder/modules.d/slx-dmsetup/scripts/dmsetup-slx-device b/builder/modules.d/slx-dmsetup/scripts/dmsetup-slx-device
index 7dd1bab3..ac1d5234 100755
--- a/builder/modules.d/slx-dmsetup/scripts/dmsetup-slx-device
+++ b/builder/modules.d/slx-dmsetup/scripts/dmsetup-slx-device
@@ -145,7 +145,7 @@ ramdisk_fallback() {
local qcow_size_in_kb="$(( read_only_device_size / 2 ))"
local ram_size_in_kb="$(awk '/MemTotal/ {printf("%d\n", $2 )}' /proc/meminfo)"
-
+ modprobe dm-zero
# fill the qcow2 device with a zero device to make it larger than it is
dmsetup_create_noudevsync filler "0 $(( ram_size_in_kb / 2 )) zero"
echo "0 $(( read_only_device_size / 2 )) linear $read_only_device 0