[PATCH 1/3] vrunner: add /sbin,/usr/sbin to PATH

[email protected] Sun, 26 Jul 2026 17:21:32 -0700
Newsgroups org.yoctoproject.lists.meta-virtualization
Message-ID <51de6e987d775747a9f0588705837aed978f58a4.1785110917.git.tim.orling@konsulko.com>
From: Tim Orling <[email protected]>

mke2fs (state disk creation) and iptables (Xen backend port forwarding)
live in /sbin or /usr/sbin, which many non-root interactive shells (e.g.
Debian/Ubuntu) don't put on PATH. Under `set -e` a missing command here
kills the script silently (no output reaches the caller), so make sure
these are reachable regardless of the caller's PATH.

Signed-off-by: Tim Orling <[email protected]>
---
 recipes-containers/vcontainer/files/vrunner.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/recipes-containers/vcontainer/files/vrunner.sh b/recipes-containers/vcontainer/files/vrunner.sh
index a32a005d..3de48abf 100755
--- a/recipes-containers/vcontainer/files/vrunner.sh
+++ b/recipes-containers/vcontainer/files/vrunner.sh
@@ -28,6 +28,7 @@ set -e
 
 VERSION="3.5.0"
 SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
+PATH="$PATH:/sbin:/usr/sbin"
 
 # Runtime selection: docker or podman
 # This affects blob directory, cmdline prefix, state directory, and log prefix
-- 
2.47.3