[PATCH] tests: Fix inside.sh mount for newer hostfs

Andrei Otcheretianski andrei.otcheretianski at intel.com
Thu Oct 23 03:45:30 PDT 2025


Older mount with newer hostfs doesn't correctly interpret the
parameters. Specify the mounted dir exlicitly with hostfs=.
This way it works both with old an newer kernels.

Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski at intel.com>
---
 tests/hwsim/vm/inside.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/hwsim/vm/inside.sh b/tests/hwsim/vm/inside.sh
index 53d67472cd..8a131cb434 100755
--- a/tests/hwsim/vm/inside.sh
+++ b/tests/hwsim/vm/inside.sh
@@ -109,7 +109,7 @@ ip link set lo up
 # create logs mountpoint and mount the logshare
 mkdir /tmp/logs
 if grep -q rootfstype=hostfs /proc/cmdline; then
-    mount -t hostfs none /tmp/logs -o $LOGDIR
+    mount -t hostfs none /tmp/logs -o hostfs=$LOGDIR
 else
     mount -t 9p -o trans=virtio,rw logshare /tmp/logs
 fi
-- 
2.49.0




More information about the Hostap mailing list