Backport finalrd 6 to xenial and up
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
finalrd (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
* finalrd is a useful tool, that improves ability to cleanly shut down systems. It is now desired to backport it all the way back to xenial. On classic systems it will not be installed by default, but available for users to opt-in into having it. On Ubuntu Core systems it will be installed by default, and used instead of snap-shutdown. As finalrd does everything that snap-shutdown already did, and much more.
* finalrd is only tweaked slightly in version 6 to be compatible with any systemd from xenial to groovy.
[Test Case]
Classic
* Install finalrd
* execute `sudo finalrd` and observe that no stderr is printed, and command exits successfully
* check that /run/initramfs is created and populated with /run/initramfs/
* Reboot
* Observe that finalrd unit is started
** (optional) to make observing finalrd easier add /etc/finalrd/
* Shutdown, capture console-log observe that finalrd was executed
[xenial extra testcase]
* finalrd binary package should have Task: ubuntu-core, such that when building core snap, it is installed by livebuild.
Core
* Create custom core, core18 with finalrd preinstalled
* Building custom Ubuntu Core 16 and Ubuntu Core 18 image with above core
* Observe that finalrd unit is started on boot
* Shutdown, capture console-log observe that finarld was executed.
* Boot again
* execute `sudo finalrd` and observe that no stderr is printed, and command exits successfully
* check that /run/initramfs is created and populated with /run/initramfs/
[Regression Potential]
* Packaging & tmpfiles were changed to be compatible with older systemd versions. There are no changes to api/abi of the systemd units, or .finalrd hooks. The package is not installed by default on xenial/bionic, hence the number and type of machines affected is small. If regressions are identified, reverting to previous version of the package is safe course of action, as there are no upgrade/downgrade incompatibilities between old & new versions of finalrd.
Related branches
- Steve Langasek: Approve
-
Diff: 12 lines (+1/-0)1 file modifiedsystem-image (+1/-0)
Changed in finalrd (Ubuntu): | |
status: | Invalid → Fix Released |
Changed in finalrd (Ubuntu Xenial): | |
status: | Triaged → Fix Released |
tags: | added: fr-689 |
Hello Dimitri, or anyone else affected,
Accepted finalrd into focal-proposed. The package will build now and be available at https:/ /launchpad. net/ubuntu/ +source/ finalrd/ 6~ubuntu20. 04.1 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/ PerformingSRUVe rification . 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.