mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-18 21:27:56 +00:00
run: fix custom image disk size calculation
This commit is contained in:
parent
f213a07c83
commit
0dc4335fbc
@ -28,7 +28,7 @@ proc run_image { {unused ""} } {
|
||||
set size_run [expr [regsub {\s.*} [exec du -skL [run_dir]] {}]]
|
||||
|
||||
if {[image_disk_size] > 0} {
|
||||
set disk_size_kb [expr [image_disk_size] * 1024 * 1024]
|
||||
set disk_size_kb [expr [image_disk_size] * 1024]
|
||||
} else {
|
||||
set disk_size_kb [expr ($size_run + 512) / 32 * 32]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user