From f4c3c4c2cd12399c1060ffc4f979bb0e5bd096b8 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Mon, 29 Apr 2019 16:24:19 -0700 Subject: [PATCH] Workaround #1704488 in the live image build test Odd bug which breaks mock until you reboot or restart dbus-broker. Signed-off-by: Adam Williamson --- tests/_live_build.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/_live_build.pm b/tests/_live_build.pm index 46d20b2a..f58c8eb1 100644 --- a/tests/_live_build.pm +++ b/tests/_live_build.pm @@ -14,6 +14,8 @@ sub run { assert_script_run "setenforce Permissive"; # install the tools we need assert_script_run "dnf -y install mock git pykickstart tar", 120; + # FIXME workaround for https://bugzilla.redhat.com/show_bug.cgi?id=1704488 + assert_script_run "systemctl restart dbus-broker" if ($version > 29); # make the update/task repo and the serial device available inside the mock root assert_script_run 'echo "config_opts[\'plugin_conf\'][\'bind_mount_enable\'] = True" > /etc/mock/openqa.cfg'; assert_script_run 'echo "config_opts[\'plugin_conf\'][\'bind_mount_opts\'][\'dirs\'].append((\'/opt/update_repo\', \'/opt/update_repo\'))" >> /etc/mock/openqa.cfg';