Skip to content

Commit

Permalink
remove_kernel_packages(): Drop multipath-tools from returned list
Browse files Browse the repository at this point in the history
Uninstall multipath-tools together with kernel packages but don't add it
to the returned list. When the list is used to install the removed packages
back with a different kernel, multipath-tools could pull in the wrong kernel
and cause dependency conflict.
  • Loading branch information
mdoucha committed Aug 20, 2024
1 parent a89379b commit 1723496
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/kernel.pm
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ sub remove_kernel_packages {
push @packages, qw(kernel-xen kernel-xen-devel);
}

my @retlist = @packages;
push @packages, "multipath-tools"
if is_sle('>=15-SP3') and !get_var('KGRAFT');

Expand All @@ -55,7 +56,7 @@ sub remove_kernel_packages {
zypper_call('-n rm ' . join(' ', @packages), exitcode => [0, 104]);
}

return @packages;
return @retlist;
}

1;

0 comments on commit 1723496

Please sign in to comment.