From 21385361ed0dd8f6405f80e065e036a04ae74c56 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Mon, 8 Mar 2021 14:01:46 -0800 Subject: [PATCH] F34+: disable systemd-oomd during update install (#1931034) This will avoid us hitting a crash in systemd during update when systemd is being updated. That's a real bug and it's good that it's been caught, but we don't want unrelated updates to fail on this just because systemd is in the update set. Signed-off-by: Adam Williamson --- lib/utils.pm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/utils.pm b/lib/utils.pm index 108b54f4..84b125b5 100644 --- a/lib/utils.pm +++ b/lib/utils.pm @@ -588,6 +588,13 @@ sub _repo_setup_updates { unless (get_var("TEST") eq "support_server" && $version ne get_var("CURRREL")) { assert_script_run 'printf "[advisory]\nname=Advisory repo\nbaseurl=file:///opt/update_repo\nenabled=1\nmetadata_expire=3600\ngpgcheck=0" > /etc/yum.repos.d/advisory.repo'; # run an update now (except for upgrade tests) + my $relnum = get_release_number; + if ($relnum > 33) { + # FIXME workaround https://bugzilla.redhat.com/show_bug.cgi?id=1931034 + # drop after https://github.com/systemd/systemd/pull/18915 is merged + # and stable + script_run "systemctl stop systemd-oomd"; + } script_run "dnf -y update", 900 unless (get_var("UPGRADE")); } # mark via a variable that we've set up the update/task repo and done