Skip to content

Commit

Permalink
KLP: Install livepatches without discarding latest snapshot
Browse files Browse the repository at this point in the history
The default behavior of transactional-update is to discard all changes
and copy the currently mounted snapshot. Add the missing continue flag
when installing kernel-default-livepatch so that the command doesn't
revert to the previous kernel in update_kernel.
  • Loading branch information
mdoucha committed Feb 13, 2025
1 parent b8e15cc commit 945838d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/klp.pm
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ sub install_klp_product {
assert_script_run 'sed -i "/^multiversion =.*/c\\multiversion = provides:multiversion(kernel)" /etc/zypp/zypp.conf';
assert_script_run 'sed -i "/^multiversion\.kernels =.*/c\\multiversion.kernels = latest" /etc/zypp/zypp.conf';
assert_script_run 'echo "LIVEPATCH_KERNEL=\'always\'" >> /etc/sysconfig/livepatching';
install_package($livepatch_pack, trup_reboot => 1);
install_package($livepatch_pack, trup_continue => 1, trup_reboot => 1);
} else {
zypper_call("in -l -t product $lp_product", exitcode => [0, 102, 103]);
zypper_call("mr -e kgraft-update") unless $livepatch_repo;
Expand Down

0 comments on commit 945838d

Please sign in to comment.