[Bug 1895160] [NEW] Backport finalrd 6 to xenial and up

Dimitri John Ledkov 1895160 at bugs.launchpad.net
Thu Sep 10 14:49:37 UTC 2020


Public bug reported:

[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/shutdown, binaries and libraries.
 * Reboot
 * Observe that finalrd unit is started
 ** (optional) to make observing finalrd easier add /etc/finalrd/echo.finalrd hook that does `echo $@` with a sleep
 * Shutdown, capture console-log observe that finalrd was executed

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/shutdown, binaries and libraries.

[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.

** Affects: finalrd (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: finalrd (Ubuntu Xenial)
     Importance: Undecided
         Status: New

** Affects: finalrd (Ubuntu Bionic)
     Importance: Undecided
         Status: New

** Affects: finalrd (Ubuntu Focal)
     Importance: Undecided
         Status: New

** Also affects: finalrd (Ubuntu Bionic)
   Importance: Undecided
       Status: New

** Also affects: finalrd (Ubuntu Focal)
   Importance: Undecided
       Status: New

** Also affects: finalrd (Ubuntu Xenial)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to finalrd in Ubuntu.
https://bugs.launchpad.net/bugs/1895160

Title:
  Backport finalrd 6 to xenial and up

Status in finalrd package in Ubuntu:
  New
Status in finalrd source package in Xenial:
  New
Status in finalrd source package in Bionic:
  New
Status in finalrd source package in Focal:
  New

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/shutdown, binaries and libraries.
   * Reboot
   * Observe that finalrd unit is started
   ** (optional) to make observing finalrd easier add /etc/finalrd/echo.finalrd hook that does `echo $@` with a sleep
   * Shutdown, capture console-log observe that finalrd was executed

  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/shutdown, binaries and libraries.

  [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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/finalrd/+bug/1895160/+subscriptions



More information about the foundations-bugs mailing list