Blame SOURCES/0012-adopt-inversion-of-SELinux-relabeling-in-virt-custom.patch

696189
From 7b22bc65e5df2bbe9f5ccf8ab05e67afb5a4cb8f Mon Sep 17 00:00:00 2001
696189
From: Laszlo Ersek <lersek@redhat.com>
696189
Date: Tue, 10 May 2022 12:53:07 +0200
696189
Subject: [PATCH] adopt inversion of SELinux relabeling in virt-customize
696189
696189
Remove "--selinux-relabel" options.
696189
696189
Do not add any "--no-selinux-relabel" options; rely on the internal check
696189
for SELinux support instead ("is_selinux_guest" in
696189
"common/mlcustomize/SELinux_relabel.ml").
696189
696189
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1554735
696189
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2075718
696189
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
696189
Message-Id: <20220510105307.15402-1-lersek@redhat.com>
696189
Acked-by: Richard W.M. Jones <rjones@redhat.com>
696189
[lersek@redhat.com: incorporate common submodule update]
696189
(cherry picked from commit 0c24fc6015ce7719acff3bcead7eb227b6de3f21)
696189
---
696189
 common                          | 2 +-
696189
 tests/test-v2v-conversion-of.sh | 7 -------
696189
 2 files changed, 1 insertion(+), 8 deletions(-)
696189
696189
Submodule common 201632e4..af6cb55b (rewind):
696189
diff --git a/common/mlcustomize/guest_packages.ml b/common/mlcustomize/guest_packages.ml
696189
index 7c29a2ab..4c3c34ed 100644
696189
--- a/common/mlcustomize/guest_packages.ml
696189
+++ b/common/mlcustomize/guest_packages.ml
696189
@@ -73,9 +73,9 @@ let install_command packages package_management =
696189
   | "zypper" -> sprintf "zypper -n in -l %s" quoted_args
696189
 
696189
   | "unknown" ->
696189
-    error_unknown_package_manager "--install"
696189
+    error_unknown_package_manager (s_"--install")
696189
   | pm ->
696189
-    error_unimplemented_package_manager "--install" pm
696189
+    error_unimplemented_package_manager (s_"--install") pm
696189
 
696189
 let update_command package_management =
696189
   match package_management with
696189
@@ -103,9 +103,9 @@ let update_command package_management =
696189
   | "zypper" -> "zypper -n update -l"
696189
 
696189
   | "unknown" ->
696189
-    error_unknown_package_manager "--update"
696189
+    error_unknown_package_manager (s_"--update")
696189
   | pm ->
696189
-    error_unimplemented_package_manager "--update" pm
696189
+    error_unimplemented_package_manager (s_"--update") pm
696189
 
696189
 let uninstall_command packages package_management =
696189
   let quoted_args = String.concat " " (List.map quote packages) in
696189
@@ -127,6 +127,6 @@ let uninstall_command packages package_management =
696189
   | "zypper" -> sprintf "zypper -n rm %s" quoted_args
696189
 
696189
   | "unknown" ->
696189
-    error_unknown_package_manager "--uninstall"
696189
+    error_unknown_package_manager (s_"--uninstall")
696189
   | pm ->
696189
-    error_unimplemented_package_manager "--uninstall" pm
696189
+    error_unimplemented_package_manager (s_"--uninstall") pm
696189
diff --git a/tests/test-v2v-conversion-of.sh b/tests/test-v2v-conversion-of.sh
696189
index 5a974d1b..5c5cae7c 100755
696189
--- a/tests/test-v2v-conversion-of.sh
696189
+++ b/tests/test-v2v-conversion-of.sh
696189
@@ -53,13 +53,6 @@ fi
696189
 # Some guests need special virt-builder parameters.
696189
 # See virt-builder --notes "$guestname"
696189
 declare -a extra
696189
-case "$guestname" in
696189
-    fedora*|rhel*|centos*)
696189
-        extra[${#extra[*]}]='--selinux-relabel'
696189
-        ;;
696189
-    *)
696189
-        ;;
696189
-esac
696189
 
696189
 # Don't try to update Windows versions.
696189
 case "$guestname" in