From 8b236592d9e5239f38b76e5b9e8f7e01d7ad3812 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Thu, 29 Aug 2019 15:35:51 -0700 Subject: [PATCH] Disable SELinux for live image build test Building images with SELinux in permissive mode worked fine in F29 and F30, but it seems to be broken in F31. Releng seems to have it set up so the build environment has SELinux disabled, so let's do the same. Will file a bug for this, as bcl says it should be considered a bug. Signed-off-by: Adam Williamson --- templates-updates | 1 + tests/_live_build.pm | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/templates-updates b/templates-updates index de06e087..8b094c5c 100755 --- a/templates-updates +++ b/templates-updates @@ -979,6 +979,7 @@ name => "live_build", settings => [ { key => "POSTINSTALL", value => "_live_build" }, + { key => "GRUB_POSTINSTALL", value => "selinux=0" }, { key => "USER_LOGIN", value => "false" }, { key => "ROOT_PASSWORD", value => "weakpassword" }, { key => "BOOTFROM", value => "c" }, diff --git a/tests/_live_build.pm b/tests/_live_build.pm index d626a8ad..76f48291 100644 --- a/tests/_live_build.pm +++ b/tests/_live_build.pm @@ -10,8 +10,6 @@ sub run { my $arch = get_var("ARCH"); my $subv = get_var("SUBVARIANT"); my $lcsubv = lc($subv); - # we need to be in permissive mode or the built image has selinux issues - assert_script_run "setenforce Permissive"; # install the tools we need assert_script_run "dnf -y install mock git pykickstart tar", 120; # make the update/task repo and the serial device available inside the mock root