[PATCH v2] tests: Fix inside.sh mount for newer hostfs
Andrei Otcheretianski
andrei.otcheretianski at intel.com
Mon Oct 27 06:06:51 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 | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/hwsim/vm/inside.sh b/tests/hwsim/vm/inside.sh
index 53d67472cd..15b846975f 100755
--- a/tests/hwsim/vm/inside.sh
+++ b/tests/hwsim/vm/inside.sh
@@ -109,7 +109,8 @@ 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 || \
+ mount -t hostfs none /tmp/logs -o $LOGDIR || exit 2
else
mount -t 9p -o trans=virtio,rw logshare /tmp/logs
fi
--
2.49.0
More information about the Hostap
mailing list