Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 1/3] qemu: enable pseudo for nfs rootfs export
@ 2026-10-02 11:48 Andrej Kozemcak
  2026-10-02 11:48 ` [PATCH 2/3] runqemu: support rootfs-dbg flag in QB_FSINFO Andrej Kozemcak
  0 siblings, 1 reply; 3+ messages in thread
From: Andrej Kozemcak @ 2026-10-02 11:48 UTC (permalink / raw)
  To: openembedded-core; +Cc: Andrej Kozemcak

Testimage.bbclass can now boot from nfs, but pseudo is globally
disabled by default in the environment. This corrupts file access
rights when qemu boots from nfs, causing failures. Explicitly
enable pseudo in runqemu-export-rootfs since it is required here.

Also export OECORE_NATIVE_SYSROOT from qemurunner so
runqemu-export-rootfs can locate pseudo without needing a second
tinfoil connection.

Signed-off-by: Andrej Kozemcak <andrej.kozemcak@siemens.com>
---
 meta/lib/oeqa/utils/qemurunner.py | 4 ++++
 scripts/runqemu-export-rootfs     | 2 ++
 2 files changed, 6 insertions(+)

diff --git a/meta/lib/oeqa/utils/qemurunner.py b/meta/lib/oeqa/utils/qemurunner.py
index 5979b52650..1a83c01ea8 100644
--- a/meta/lib/oeqa/utils/qemurunner.py
+++ b/meta/lib/oeqa/utils/qemurunner.py
@@ -166,6 +166,10 @@ class QemuRunner:
         if self.tmpfsdir:
             env["RUNQEMU_TMPFS_DIR"] = self.tmpfsdir
 
+        if self.native_sysroot:
+            # Needed by runqemu-export-rootfs (avoid a second tinfoil connection)
+            env["OECORE_NATIVE_SYSROOT"] = self.native_sysroot
+
         if not launch_cmd:
             launch_cmd = 'runqemu %s' % ('snapshot' if discard_writes else '')
             if self.use_kvm:
diff --git a/scripts/runqemu-export-rootfs b/scripts/runqemu-export-rootfs
index 150513bc50..ff19a0ccc9 100755
--- a/scripts/runqemu-export-rootfs
+++ b/scripts/runqemu-export-rootfs
@@ -58,6 +58,8 @@ PSEUDO_LOCALSTATEDIR="$NFS_EXPORT_DIR/../$(basename $NFS_EXPORT_DIR).pseudo_stat
 export PSEUDO_LOCALSTATEDIR
 PSEUDO_INCLUDE_PATHS="$NFS_EXPORT_DIR"
 export PSEUDO_INCLUDE_PATHS
+# Enable pseudo
+export PSEUDO_DISABLED=0
 
 if [ ! -d "$PSEUDO_LOCALSTATEDIR" ]; then
 	echo "Error: $PSEUDO_LOCALSTATEDIR does not exist."


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-10-03 16:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-02 11:48 [PATCH 1/3] qemu: enable pseudo for nfs rootfs export Andrej Kozemcak
2026-10-02 11:48 ` [PATCH 2/3] runqemu: support rootfs-dbg flag in QB_FSINFO Andrej Kozemcak
2026-10-03 16:53   ` [OE-core] " Mathieu Dubois-Briand

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox