From f4729be7a56baf3b310a63a5182fbadf14c4d3a7 Mon Sep 17 00:00:00 2001 From: Yumei Huang Date: Fri, 26 Sep 2025 16:47:40 +0800 Subject: test: Update mbuto profile to fix the symlink of /bin When running test 'migrate/rampstream_out' on fedora, test fails with error like this: guest_1$ socat -u EXEC:"rampstream send 6000000" TCP4:192.0.2.1:10006 2025/09/24 04:06:12 socat[405] E execvp("rampstream", "rampstream", "send", "6000000", ...): No such file or directory It's because on fedora, /bin is not in the PATH, and some binaries are under /usr/bin. mbuto will find the binaries on the host and put them into the guest under same directories. As a result, /usr/bin in mbuto guest are not empty, causing creating /usr/bin symlink failed. Thus, the script 'rampstream' under /bin is not found during testing. This patch fixes the issue and creates the symlink for consistency with /sbin. Link: https://bugs.passt.top/show_bug.cgi?id=151 Suggested-by: David Gibson Signed-off-by: Yumei Huang Signed-off-by: Stefano Brivio --- test/passt.mbuto | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/passt.mbuto b/test/passt.mbuto index 176cf3f..231b9c9 100755 --- a/test/passt.mbuto +++ b/test/passt.mbuto @@ -64,7 +64,9 @@ set >> \$LOG exit 0 EOF chmod 755 /sbin/dhclient-script - ln -s /bin /usr/bin + mv /bin/* /usr/bin || : + rm -rf /bin + ln -s /usr/bin /bin ln -s /run /var/run :> /etc/fstab -- cgit v1.2.3