From abc66c5dc73ef78f43c2d85e267ff4f60e5c4004 Mon Sep 17 00:00:00 2001 From: Johannes Schauer Marin Rodrigues Date: Sun, 2 Jun 2024 12:08:52 +0200 Subject: [PATCH] increase additional number of blocks from 1.1 to 1.2 times the computed number --- mmdebstrap | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mmdebstrap b/mmdebstrap index 24f7ee9..98ca9f5 100755 --- a/mmdebstrap +++ b/mmdebstrap @@ -4455,8 +4455,9 @@ sub approx_disk_usage { # image. See https://bugs.debian.org/1005857 find({ wanted => $scan_installed_size, no_chdir => 1 }, $directory); - # because the above is only a heuristic we add 10% extra for good measure - return int($installed_size * 1.1); + # the above is only a heuristic and especially ext4 will consume quite a + # few more blocks than the heuristic above is going to compute + return int($installed_size * 1.2); } sub main() {