_advisory_update: stop the graphical desktop at the start

We have a big problem with Rawhide KDE update tests getting OOM
killed during this phase. Stopping the desktop before we install
updates should save some RAM and help avoid this.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2022-10-20 18:10:23 -07:00
parent 5ea921b17b
commit 3208d15725
1 changed files with 5 additions and 0 deletions

View File

@ -8,6 +8,11 @@ sub run {
# do the 'repo setup' steps, which set up a repo containing the
# update packages and run 'dnf update'
$self->root_console(tty => 3);
# stop the graphical desktop; this should help with a problem
# we're having in Rawhide as of 2022-10 where KDE update tests
# are frequently getting OOM killed here:
# https://bugzilla.redhat.com/show_bug.cgi?id=2133829
script_run "systemctl isolate multi-user.target";
repo_setup;
if (get_var("ADVISORY_BOOT_TEST")) {
# to test boot stuff - in case the update touched grub2, or dracut,