From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: passt.top; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=hkTxHriU; dkim-atps=neutral Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by passt.top (Postfix) with ESMTPS id 6AC8D5A0271 for ; Fri, 26 Sep 2025 10:47:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1758876472; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=J8xoqfXsadh7okNzA5JIL0mGIIKrtDum+JRytHqA2bE=; b=hkTxHriUJNBBjbtgACFTMulLgWPEHZ+HZPs62VGN1th8d8PmgPtGA4J5PVv3MKWlUNg+tI r1IQZE++XMrBhNmDgmLLgX0NS63uOWpYDy7BfKJAVIJUgAUecnYI2k60nyEfLgCzKvZnaK VM0rZzzK0CSzyzWWmShGeP7dMQw6AkY= Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-639-dfq6w_pyOjKoG164foD50A-1; Fri, 26 Sep 2025 04:47:49 -0400 X-MC-Unique: dfq6w_pyOjKoG164foD50A-1 X-Mimecast-MFC-AGG-ID: dfq6w_pyOjKoG164foD50A_1758876468 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 721651800447; Fri, 26 Sep 2025 08:47:47 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.72.112.110]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 5E53C1800452; Fri, 26 Sep 2025 08:47:43 +0000 (UTC) From: Yumei Huang To: passt-dev@passt.top, sbrivio@redhat.com Subject: [PATCH] test: Update mbuto profile to fix the symlink of /bin Date: Fri, 26 Sep 2025 16:47:40 +0800 Message-ID: <20250926084740.21996-1-yuhuang@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: Pn8rGl3g5ztLsdjGf-ulx6wRw50j_XF39-cYvBuUjfI_1758876468 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit content-type: text/plain; charset="US-ASCII"; x-default=true Message-ID-Hash: 2XVWN6WGWU73RED4T7NTTEHNBLXSYUOG X-Message-ID-Hash: 2XVWN6WGWU73RED4T7NTTEHNBLXSYUOG X-MailFrom: yuhuang@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: david@gibson.dropbear.id.au, yuhuang@redhat.com X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: 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 --- 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