1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-12-22 10:23:09 +00:00

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 <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2019-08-29 15:35:51 -07:00
parent 53778fe494
commit 8b236592d9
2 changed files with 1 additions and 2 deletions

View File

@ -979,6 +979,7 @@
name => "live_build", name => "live_build",
settings => [ settings => [
{ key => "POSTINSTALL", value => "_live_build" }, { key => "POSTINSTALL", value => "_live_build" },
{ key => "GRUB_POSTINSTALL", value => "selinux=0" },
{ key => "USER_LOGIN", value => "false" }, { key => "USER_LOGIN", value => "false" },
{ key => "ROOT_PASSWORD", value => "weakpassword" }, { key => "ROOT_PASSWORD", value => "weakpassword" },
{ key => "BOOTFROM", value => "c" }, { key => "BOOTFROM", value => "c" },

View File

@ -10,8 +10,6 @@ sub run {
my $arch = get_var("ARCH"); my $arch = get_var("ARCH");
my $subv = get_var("SUBVARIANT"); my $subv = get_var("SUBVARIANT");
my $lcsubv = lc($subv); 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 # install the tools we need
assert_script_run "dnf -y install mock git pykickstart tar", 120; 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 # make the update/task repo and the serial device available inside the mock root