Skip to content

Commit

Permalink
kdump: Determine kernel debuginfo automatically on transactional systems
Browse files Browse the repository at this point in the history
Fix poo#165273: There was hard coded package name for kernel debuginfo
on transactional systems. We should determine correct debuginfo from
active kernel as we do on non-transactional systems.
  • Loading branch information
czerw committed Aug 14, 2024
1 parent cdfd608 commit 1629d56
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/kdump_utils.pm
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ my $install_debug_info_timeout = 4000;

sub install_transactional_kernel_debuginfo {
return undef if get_var('SKIP_KERNEL_DEBUGINFO');
my $cmd = 'transactional-update --continue --non-interactive pkg install kernel-default-debuginfo';
my $debuginfo = determine_kernel_debuginfo_package;
my $cmd = "transactional-update --continue --non-interactive pkg install ${debuginfo}";
assert_script_run($cmd, timeout => $install_debug_info_timeout);
}

Expand Down Expand Up @@ -437,7 +438,8 @@ sub check_function {
elsif (!get_var('SKIP_KERNEL_DEBUGINFO')) {
my $vmcore = script_output("ls -1t $vmcore_glob");
my $vmlinux = script_output("ls -1t $vmlinux_glob");
my $vmlinuxd = script_output('rpm -ql kernel-default-debuginfo | grep vmlinux');
my $debuginfo = determine_kernel_debuginfo_package;
my $vmlinuxd = script_output("rpm -ql ${debuginfo} | grep vmlinux");
my $zypper_call = 'zypper -n in crash';
my $crash_call = "echo exit | crash /host/$vmcore /host/$vmlinux /host/$vmlinuxd";
my $bash_cmd = "$zypper_call && $crash_call";
Expand Down

0 comments on commit 1629d56

Please sign in to comment.