From 274201a0d8b96e19fb994dc568047efe66c47af9 Mon Sep 17 00:00:00 2001 From: Wei Gao Date: Wed, 17 Jul 2024 19:48:03 -0400 Subject: [PATCH] d --- lib/kernel.pm | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/lib/kernel.pm b/lib/kernel.pm index 8675e648a850..89c266658eb5 100644 --- a/lib/kernel.pm +++ b/lib/kernel.pm @@ -30,20 +30,15 @@ sub remove_kernel_packages { if (check_var('SLE_PRODUCT', 'slert')) { # workaround for bsc1227773 - if (is_transactional) { - @packages = qw(kernel-rt); - } else { - @packages = qw(kernel-rt kernel-rt-devel kernel-source-rt); - } + @packages = qw(kernel-rt); + push @packages, qw(kernel-rt-devel kernel-source-rt) unless is_transactional; } elsif (get_kernel_flavor eq 'kernel-64kb') { @packages = qw(kernel-64kb*); } - elsif (is_transactional) { - @packages = qw(kernel-default); - } else { - @packages = qw(kernel-default kernel-default-devel kernel-macros kernel-source); + @packages = qw(kernel-default); + push @packages, qw(kernel-default-devel kernel-macros kernel-source) unless is_transactional; } # SLE12 and SLE12SP1 has xen kernel