We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2ba148 commit 1a6a1d9Copy full SHA for 1a6a1d9
export-image/prerun.sh
@@ -18,7 +18,10 @@ ALIGN="$((4 * 1024 * 1024))"
18
# some overhead (since actual space usage is usually rounded up to the
19
# filesystem block size) and gives some free space on the resulting
20
# image.
21
-ROOT_MARGIN="$(echo "($ROOT_SIZE * 0.2 + 200 * 1024 * 1024) / 1" | bc)"
+
22
+# To avoid disk space problems in the loop device, changed ROOT_MARGIN
23
+# as suggested in https://github.com/RPi-Distro/pi-gen/issues/784
24
+ROOT_MARGIN="$(echo "($ROOT_SIZE * 0.3 + 200 * 1024 * 1024) / 1" | bc)"
25
26
BOOT_PART_START=$((ALIGN))
27
BOOT_PART_SIZE=$(((BOOT_SIZE + ALIGN - 1) / ALIGN * ALIGN))
0 commit comments