From 11ff774f7279f7cea6505be4143c81ac4bfb2635 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Fri, 27 Jan 2023 15:32:16 +0100 Subject: [PATCH] tool/run/image/disk: find resize2fs in /usr/sbin This patch adjusts the run/image/disk plugin to search for resize2fs in /usr/sbin, which is not included in the PATH variable on Debian by default. Issue #4746 --- tool/run/image/disk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/run/image/disk b/tool/run/image/disk index 9d202e5896..7b2aec889a 100644 --- a/tool/run/image/disk +++ b/tool/run/image/disk @@ -54,7 +54,7 @@ proc run_image { } { 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 [installed_command 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] }