amd64-microcode better initramfs hook

Bug #1840670 reported by Dimitri John Ledkov
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
amd64-microcode (Ubuntu)
Fix Released
Undecided
Unassigned
Xenial
In Progress
Undecided
Unassigned
Bionic
Fix Committed
Undecided
Unassigned
Disco
Fix Released
Undecided
Unassigned

Bug Description

[Impact]

 * It is hard to generate initrd, with all microcodes included because the initramfs hook ignores
   preset defaults. Adjust hook to take preset defaults into account.

[Test Case]

 * Install new package, and check that initrd with default settings (i.e. modules=most) has amd64
   microcode included. And that with modules=dep|list it only does so, if one is on AMD cpu.

 * Install initramfs-tools-ubuntu-core from snap image PPA, the resulting initrd should contian
   both amd64 and intel microcode, despite using modules=list, due to the conf.d default settings
   it overrides.

[Regression Potential]

 * The hook default behaviour is not changed, only integration with custom conf.d's is improved.

Changed in amd64-microcode (Ubuntu):
status: New → Fix Released
Changed in amd64-microcode (Ubuntu Disco):
status: New → In Progress
Changed in amd64-microcode (Ubuntu Bionic):
status: New → In Progress
Changed in amd64-microcode (Ubuntu Xenial):
status: New → In Progress
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Dimitri, or anyone else affected,

Accepted amd64-microcode into disco-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/amd64-microcode/3.20181128.1ubuntu1.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 and change the tag from verification-needed-disco to verification-done-disco. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-disco. 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 amd64-microcode (Ubuntu Disco):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-disco
Revision history for this message
Robie Basak (racb) wrote :

> It is hard to generate initrd, with all microcodes included because the initramfs hook ignores preset defaults.

How does this impact users: why might a user want to generate such an initrd and what breaks by not being able to do it?

If another SRU team member already understands then that's fine, but I don't think that I can accept an SRU unless I can understand why we're doing it.

Revision history for this message
Steve Langasek (vorlon) wrote :

Hello Dimitri, or anyone else affected,

Accepted amd64-microcode into bionic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/amd64-microcode/3.20181128.1~ubuntu0.18.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 and change the tag from verification-needed-bionic to verification-done-bionic. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-bionic. 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 amd64-microcode (Ubuntu Bionic):
status: In Progress → Fix Committed
tags: added: verification-needed-bionic
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package amd64-microcode - 3.20191021.1ubuntu0.19.04.1

---------------
amd64-microcode (3.20191021.1ubuntu0.19.04.1) disco; urgency=medium

  * Backport to Ubuntu 19.04 (LP: #1850752)

amd64-microcode (3.20191021.1ubuntu1) focal; urgency=low

  * Merge from Debian unstable (LP: #1850752). Remaining changes:
    - initramfs-tools hook (debian/initramfs.hook):
      + Default to 'early' instead of 'auto' when building with
        MODULES=most
      + Do not override preset defaults from auto-exported conf
        snippets loaded by initramfs-tools.

amd64-microcode (3.20191021.1) unstable; urgency=medium

  * New microcode update packages from AMD upstream:
    + New Microcodes:
      sig 0x00830f10, patch id 0x08301025, 2019-07-11
    + Updated Microcodes:
      sig 0x00800f12, patch id 0x08001250, 2019-04-16
      sig 0x00800f82, patch id 0x0800820d, 2019-04-16
  * README: update for new release

amd64-microcode (3.20181128.1ubuntu1.1) disco; urgency=medium

  * Do not override preset defaults from auto-exported conf snippets
    loaded by initramfs-tools. This thus allows other hooks, or
    alternative confdir override the built-in defaults at mkinitramfs
    time. Specifically to support generating installer/golden/bare-metal
    initrds with all microcodes for any hardware. LP: #1840670

 -- Steve Beattie <email address hidden> Thu, 31 Oct 2019 14:59:01 -0700

Changed in amd64-microcode (Ubuntu Disco):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.