run/image/disk: consider ext2 overhead

The original value of 256K does not suffice for images of the size of
sculpt.
This commit is contained in:
Norman Feske 2018-05-03 15:40:10 +02:00 committed by Christian Helmuth
parent 7f285bb074
commit 48bc69b14b

View File

@ -31,7 +31,7 @@ proc run_image { {unused ""} } {
if {[image_disk_size] > 0} {
set disk_size_kb [expr [image_disk_size] * 1024 * 1024]
} else {
set disk_size_kb [expr ($size_run + 256) / 32 * 32]
set disk_size_kb [expr ($size_run + 256 + 128) / 32 * 32]
}
# setup partition with content