Discussion:
Bug#1077668: bookworm-pu: package kexec-tools 2.0.25-3+deb12u1
Add Reply
Miao Wang
2024-07-31 16:20:01 UTC
Reply
Permalink
Package: release.debian.org
Severity: normal
Tags: bookworm
User: ***@packages.debian.org
Usertags: pu

[ Reason ]

kexec-tools in bookworm is affected by #1028416 which is considered an
grave malfunction.

The installed /etc/init.d/kexec init script does nothing when started,
and executing `kexec -e` if a kexec kernel is loaded when stopped,
providing kexec reboot for legacy init system. However, for systemd
enabled systems, such behavior will affect the handling of kexec reboot
of systemd, since the stopping of the kexec service is executed before
umounting filesystems and other cleaning up jobs of systemd, which might
cause potential data loss.

In unstable, this has been fixed by removing this init script. However,
this might break the users of non systemd systems. As a result, installing
a systemd service mask instead for stable updates.

Now, along with this package, a systemd mask for kexec.service is also
installed, preventing the init script from functioning for systemd enabled
systems, and does not affect the functionality of the script on other non-
systemd systems.

[ Impact ]

For systemd enabled systems, when a kexec kernel is loaded, a reboot/poweroff
will become kexec as a side effect of this init script, which will cause an
abrupt kexec rather than cleanly close all the resources. After this update,
reboot and poweroff will remain themselves no matter whether a kexec kernel
is loaded. If a user wants a kexec reboot, systemctl kexec should be used
instead.

[ Tests ]

I've carried several tests on my system and can confirm it works as intended.

[ Risks ]

Risks are minimal. A reboot/poweroff will not become kexec no matter whether
a kexec kernel is loaded, being consistent with user's intention.

[ Checklist ]
[*] *all* changes are documented in the d/changelog
[*] I reviewed all changes and I approve them
[*] attach debdiff against the package in (old)stable
[*] the issue is verified as fixed in unstable

[ Changes ]
* Non-maintainer upload.
* Add a systemd mask to kexec.service, to prevent the init script from
handling kexec process on a systemd enabled system.

[ Other info ]
n/a


Miao Wang
Jonathan Wiltshire
2024-10-17 12:30:01 UTC
Reply
Permalink
Control: tag -1 confirmed

You need a Closes for the original bug in your changelog; otherwise please
go ahead.

Thanks,
--
Jonathan Wiltshire ***@debian.org
Debian Developer http://people.debian.org/~jmw

4096R: 0xD3524C51 / 0A55 B7C5 1223 3942 86EC 74C3 5394 479D D352 4C51
ed25519/0x196418AAEB74C8A1: CA619D65A72A7BADFC96D280196418AAEB74C8A1
Miao Wang
2024-10-17 17:10:01 UTC
Reply
Permalink
Debdiff updated to add Closes: in changelog.
Aron Xu
2024-10-18 02:10:01 UTC
Reply
Permalink
Hi
Post by Miao Wang
Debdiff updated to add Closes: in changelog.
I've sponsored this debdiff, it should hit the -proposed queue shortly.

Thanks,
Aron

Loading...