[Bug 1969365] Re: focal: backport kexec fallback patch
Brian Murray
1969365 at bugs.launchpad.net
Fri Jan 5 19:37:28 UTC 2024
Hello Dan, or anyone else affected,
Accepted systemd into focal-proposed. The package will build now and be
available at
https://launchpad.net/ubuntu/+source/systemd/245.4-4ubuntu3.23 in a few
hours, and then in the -proposed repository.
Please help us by testing this new package. See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed. Your feedback will aid us getting this
update out to other Ubuntu users.
If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, what testing has been
performed on the package and change the tag from verification-needed-
focal to verification-done-focal. If it does not fix the bug for you,
please add a comment stating that, and change the tag to verification-
failed-focal. In either case, without details of your testing we will
not be able to proceed.
Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in
advance for helping!
N.B. The updated package will be released to -updates after the bug(s)
fixed by this package have been verified and the package has been in
-proposed for a minimum of 7 days.
** Changed in: systemd (Ubuntu Focal)
Status: Triaged => Fix Committed
** Tags added: verification-needed verification-needed-focal
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1969365
Title:
focal: backport kexec fallback patch
Status in systemd package in Ubuntu:
Fix Released
Status in systemd source package in Focal:
Fix Committed
Bug description:
It would be great if focal's systemd could have
https://github.com/systemd/systemd/commit/71180f8e57f8fbb55978b00a13990c79093ff7b3
backported to it.
[Impact]
We have observed that kexec'ing to another kernel will fail as the
drive containing the `kexec` binary has been unmounted by the time
systemd attempts to do so, indicated in the console:
Starting Reboot via kexec...
[ 163.960938] shutdown[1]: (sd-kexec) failed with exit status 1.
[ 163.963463] reboot: Restarting system
[Test Plan]
1) Launch a 20.04 instance
2) `apt-get install kexec-tools`
3) In `/boot`, filling in whatever <cmdline> needed in your environment:
kexec -l vmlinuz --initrd initrd.img --append '<cmdline>'
4) `reboot`
(I have reproduced this in a single-disk VM, so I assume it reproduces
~everywhere: if not, `apt-get remove kexec-tools` before the `reboot`
could be used to emulate the unmounting.)
[Where problems could occur]
Users could inadvertently be relying on the current behaviour: if they
have configured their systems to kexec, they currently will be
rebooting normally, and this patch would cause them to start actually
kexec'ing.
[Other info]
We're currently maintaining a systemd tree with only this patch added
to focal's tree: this patch has received a bunch of testing from us in
focal.
This patch landed in v246, so it's already present in supported
releases later than focal.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1969365/+subscriptions
More information about the foundations-bugs
mailing list