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 <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2019-04-29 16:24:19 -07:00
parent 9389acf4b0
commit f4c3c4c2cd

View File

@ -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';