From: Yumei Huang <yuhuang@redhat.com>
To: passt-dev@passt.top, sbrivio@redhat.com
Cc: david@gibson.dropbear.id.au, yuhuang@redhat.com
Subject: [PATCH] test: Update mbuto profile to fix the symlink of /bin
Date: Fri, 26 Sep 2025 16:47:40 +0800 [thread overview]
Message-ID: <20250926084740.21996-1-yuhuang@redhat.com> (raw)
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 <david@gibson.dropbear.id.au>
Signed-off-by: Yumei Huang <yuhuang@redhat.com>
---
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
--
2.47.0
next reply other threads:[~2025-09-26 8:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-26 8:47 Yumei Huang [this message]
2025-09-26 12:37 ` Stefano Brivio
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250926084740.21996-1-yuhuang@redhat.com \
--to=yuhuang@redhat.com \
--cc=david@gibson.dropbear.id.au \
--cc=passt-dev@passt.top \
--cc=sbrivio@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://passt.top/passt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).