fix: only pass minimize size option to make_reproducible_ext4 if no explicit size given in fstab
@@ -107,7 +107,7 @@ sed 's/#.*//;/^[[:blank:]]*$/d' \
case "$fs" in
"ext4")
- make_reproducible_ext4 -t "$timestamp" -h "gardenlinux:$version:partition:$target" ${uuid:+"-u"} ${uuid:+"$uuid"} ${label:+"-l"} ${label:+"$label"} -q -m -p 16 "$rootfs_work$target" "$file"
+ make_reproducible_ext4 -t "$timestamp" -h "gardenlinux:$version:partition:$target" ${uuid:+"-u"} ${uuid:+"$uuid"} ${label:+"-l"} ${label:+"$label"} -q $([ "$resize" = 0 ] || echo "-m") -p 16 "$rootfs_work$target" "$file"
;;
"vfat")
make_reproducible_vfat -t "$timestamp" -h "gardenlinux:$version:partition:$target" ${uuid:+"-u"} ${uuid:+"$uuid"} ${label:+"-l"} ${label:+"$label"} "$rootfs_work$target" "$file"
