Use absolute path to resize2fs as on Debian /sbin is not in PATH by default.

This commit is contained in:
Michael Mueller
2023-08-07 18:33:24 +02:00
parent 6f60db5209
commit 1205032bd6

View File

@@ -54,7 +54,7 @@ proc run_image { {unused ""} } {
if {[image_disk_size] == 0} {
# resize image to only needed size and get size of resized image
exec resize2fs -M [run_dir].partition 2>/dev/null
exec /sbin/resize2fs -M [run_dir].partition 2>/dev/null
set disk_size_b [expr [regsub {\s.*} [exec wc -c [run_dir].partition] {}]]
set disk_size_kb [expr $disk_size_b / 1024]
}