>From 0cbe381e782a18cfa9730e8791a80ff01497d8fc Mon Sep 17 00:00:00 2001
From: Dan Zheng <dzh...@redhat.com>
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 <dzh...@redhat.com>
---
 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 {
     }
 
     print "# running virt-builder $osname\n";
-    system "virt-builder", "--install", "dsniff", "--root-password", 
"password:$password", "--output", $target, $osname;
+    system "virt-builder", "--install", "dsniff", "--root-password", 
"password:$password", "--output", $target, $osname, "--selinux-relabel";
 
     die "cannot run virt-builder: $?" if $? != 0;
 
-- 
1.8.3.1


-- 
Best Regards,
Dan Zheng(郑丹)
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

Reply via email to