From nobody Sun May 5 05:36:51 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1516081656537300.610861676832; Mon, 15 Jan 2018 21:47:36 -0800 (PST) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 416207C840; Tue, 16 Jan 2018 05:47:34 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 51BF45D70A; Tue, 16 Jan 2018 05:47:33 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id A413218033D9; Tue, 16 Jan 2018 05:47:29 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w0G5lSFw024184 for ; Tue, 16 Jan 2018 00:47:28 -0500 Received: by smtp.corp.redhat.com (Postfix) id 0BF1C5D970; Tue, 16 Jan 2018 05:47:28 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 00F795D96E for ; Tue, 16 Jan 2018 05:47:25 +0000 (UTC) Received: from zmail18.collab.prod.int.phx2.redhat.com (zmail18.collab.prod.int.phx2.redhat.com [10.5.83.21]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id A568818033D8 for ; Tue, 16 Jan 2018 05:47:25 +0000 (UTC) Date: Tue, 16 Jan 2018 00:47:25 -0500 (EST) From: Dan Zheng To: libvir-list@redhat.com Message-ID: <959356435.23346.1516081645638.JavaMail.zimbra@redhat.com> In-Reply-To: <1653814649.16728.1516081265472.JavaMail.zimbra@redhat.com> MIME-Version: 1.0 X-Originating-IP: [10.66.4.186, 10.4.195.12] Thread-Topic: Add new option for virt-builder Thread-Index: hPd0UjcwnTqM6LEn4qyWtYqfTDUH6w== X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-MIME-Autoconverted: from quoted-printable to 8bit by lists01.pubmisc.prod.ext.phx2.redhat.com id w0G5lSFw024184 X-loop: libvir-list@redhat.com Subject: [libvirt] [libvirt-tck] [PATCH] Add new option for virt-builder X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Tue, 16 Jan 2018 05:47:35 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 >From 0cbe381e782a18cfa9730e8791a80ff01497d8fc Mon Sep 17 00:00:00 2001 From: Dan Zheng Date: Tue, 16 Jan 2018 13:39:50 +0800 Subject: [PATCH] Add new option for virt-builder Using --selinux-relabel is required by Fedora and RHEL guests to ensure SELinux labels correctly in the disk image. Signed-off-by: Dan Zheng --- lib/Sys/Virt/TCK.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Sys/Virt/TCK.pm b/lib/Sys/Virt/TCK.pm index e9da8d2..1621342 100644 --- a/lib/Sys/Virt/TCK.pm +++ b/lib/Sys/Virt/TCK.pm @@ -405,7 +405,7 @@ sub create_virt_builder_disk { } =20 print "# running virt-builder $osname\n"; - system "virt-builder", "--install", "dsniff", "--root-password", "pass= word:$password", "--output", $target, $osname; + system "virt-builder", "--install", "dsniff", "--root-password", "pass= word:$password", "--output", $target, $osname, "--selinux-relabel"; =20 die "cannot run virt-builder: $?" if $? !=3D 0; =20 --=20 1.8.3.1 --=20 Best Regards, Dan Zheng(=E9=83=91=E4=B8=B9) Red Hat Software (Beijing) Co. 9/F, North Tower C, Raycom Infotech Park No.2 Ke Xueyuan Nanlu, Haidian District Beijing 100190 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list