From 709ff7155f72c0d3283705b95c9e5d3c01e329f0 Mon Sep 17 00:00:00 2001 From: Trevor Cooper Date: Fri, 10 Feb 2023 10:13:27 -0800 Subject: [PATCH] _pxe_setup requires selinux config for /var/tmp/rocky --- tests/_support_server.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/_support_server.pm b/tests/_support_server.pm index 9c2b0e14..fcfd8d1c 100644 --- a/tests/_support_server.pm +++ b/tests/_support_server.pm @@ -34,6 +34,10 @@ sub _pxe_setup { assert_script_run "mkdir -p /var/lib/tftpboot/pxelinux.cfg"; # install bootloader packages assert_script_run "dnf -y install syslinux", 120; + # selinux compatible fcontext config required + assert_script_run "dnf -y install policycoreutils-python-utils", 120; + assert_script_run "semanage fcontext -a -e /var/lib/rpm /var/tmp/rocky", 60; + assert_script_run "restorecon -vvRF /var/tmp/rocky", 60; assert_script_run "rpm --root=/var/tmp/rocky --rebuilddb", 60; assert_script_run "cd /var/tmp; dnf download rocky-release rocky-repos rocky-gpg-keys", 60; assert_script_run "rpm --root=/var/tmp/rocky --nodeps -i /var/tmp/*.rpm", 60; -- 2.43.5