MODULES=list results in error

Bug #1927779 reported by Dan Streetman
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
initramfs-tools (Ubuntu)
Fix Released
Undecided
Unassigned
Bionic
Invalid
Undecided
Unassigned
Focal
Fix Released
Low
Dan Streetman
Groovy
Fix Released
Low
Dan Streetman

Bug Description

[impact]

setting MODULES=list in /etc/initramfs-tools/initramfs.conf results in an error/warning when running update-initramfs

[test case]

edit initramfs.conf to change MODULES=list and run update-initramfs:

$ grep MODULES /etc/initramfs-tools/initramfs.conf
# MODULES: [ most | netboot | dep | list ]
MODULES=list
$ sudo update-initramfs -u
update-initramfs: Generating /boot/initrd.img-5.8.0-48-generic
find: ‘/var/tmp/mkinitramfs_Yr04uh/lib/modules/5.8.0-48-generic/kernel’: No such file or directory

[regression potential]

any regression would likely result in an initramfs that did not include the correct/required modules, and/or failure to build a new initramfs

[scope]

this is needed for f and g.

this is not fixed in debian, but is fixed in h and i.

the code in b is different and doesn't include this bug, so this doesn't apply to b.

for debian, MR open:
https://salsa.debian.org/kernel-team/initramfs-tools/-/merge_requests/48

[other info]

this caused some of the 'amd64-*' autopkgtests to fail in h until it was fixed. those autopkgtests don't exist in g and earlier so this was not noticed until now.

Dan Streetman (ddstreet)
Changed in initramfs-tools (Ubuntu):
status: New → Fix Released
description: updated
Dan Streetman (ddstreet)
Changed in initramfs-tools (Ubuntu Bionic):
status: New → Invalid
description: updated
Changed in initramfs-tools (Ubuntu Focal):
status: New → In Progress
Changed in initramfs-tools (Ubuntu Groovy):
status: New → In Progress
Changed in initramfs-tools (Ubuntu Focal):
assignee: nobody → Dan Streetman (ddstreet)
Changed in initramfs-tools (Ubuntu Groovy):
assignee: nobody → Dan Streetman (ddstreet)
Dan Streetman (ddstreet)
Changed in initramfs-tools (Ubuntu Focal):
importance: Undecided → Low
Changed in initramfs-tools (Ubuntu Groovy):
importance: Undecided → Low
Revision history for this message
Dan Streetman (ddstreet) wrote :

uploaded to f/g

Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Dan, or anyone else affected,

Accepted initramfs-tools into groovy-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/initramfs-tools/0.137ubuntu12.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-groovy to verification-done-groovy. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-groovy. 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 initramfs-tools (Ubuntu Groovy):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-groovy
Changed in initramfs-tools (Ubuntu Focal):
status: In Progress → Fix Committed
tags: added: verification-needed-focal
Revision history for this message
Brian Murray (brian-murray) wrote :

Hello Dan, or anyone else affected,

Accepted initramfs-tools into focal-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/initramfs-tools/0.136ubuntu6.5 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.

Revision history for this message
Dan Streetman (ddstreet) wrote :

ubuntu@lp1927779-g:~$ dpkg -l | grep initramfs-tools
ii initramfs-tools 0.137ubuntu12 all generic modular initramfs generator (automation)
ii initramfs-tools-bin 0.137ubuntu12 amd64 binaries used by initramfs-tools
ii initramfs-tools-core 0.137ubuntu12 all generic modular initramfs generator (core tools)
ubuntu@lp1927779-g:~$ grep MODULES= /etc/initramfs-tools/initramfs.conf
MODULES=list
ubuntu@lp1927779-g:~$ sudo update-initramfs -u
update-initramfs: Generating /boot/initrd.img-5.8.0-53-generic
find: ‘/var/tmp/mkinitramfs_6itbCp/lib/modules/5.8.0-53-generic/kernel’: No such file or directory

ubuntu@lp1927779-g:~$ dpkg -l | grep initramfs-tools
ii initramfs-tools 0.137ubuntu12.1 all generic modular initramfs generator (automation)
ii initramfs-tools-bin 0.137ubuntu12.1 amd64 binaries used by initramfs-tools
ii initramfs-tools-core 0.137ubuntu12.1 all generic modular initramfs generator (core tools)
ubuntu@lp1927779-g:~$ grep MODULES= /etc/initramfs-tools/initramfs.conf
MODULES=list
ubuntu@lp1927779-g:~$ sudo update-initramfs -u
update-initramfs: Generating /boot/initrd.img-5.8.0-53-generic
ubuntu@lp1927779-g:~$

tags: added: verification-done-groovy
removed: verification-needed-groovy
Revision history for this message
Dan Streetman (ddstreet) wrote :

ubuntu@lp1927779-f:~$ dpkg -l |grep initramfs-tools
ii initramfs-tools 0.136ubuntu6.4 all generic modular initramfs generator (automation)
ii initramfs-tools-bin 0.136ubuntu6.4 amd64 binaries used by initramfs-tools
ii initramfs-tools-core 0.136ubuntu6.4 all generic modular initramfs generator (core tools)
ubuntu@lp1927779-f:~$ grep MODULES= /etc/initramfs-tools/initramfs.conf
MODULES=list
ubuntu@lp1927779-f:~$ sudo update-initramfs -u
update-initramfs: Generating /boot/initrd.img-5.4.0-72-generic
find: ‘/var/tmp/mkinitramfs_zLaWLR/lib/modules/5.4.0-72-generic/kernel’: No such file or directory

ubuntu@lp1927779-f:~$ dpkg -l |grep initramfs-tools
ii initramfs-tools 0.136ubuntu6.5 all generic modular initramfs generator (automation)
ii initramfs-tools-bin 0.136ubuntu6.5 amd64 binaries used by initramfs-tools
ii initramfs-tools-core 0.136ubuntu6.5 all generic modular initramfs generator (core tools)
ubuntu@lp1927779-f:~$ grep MODULES= /etc/initramfs-tools/initramfs.conf
MODULES=list
ubuntu@lp1927779-f:~$ sudo update-initramfs -u
update-initramfs: Generating /boot/initrd.img-5.4.0-72-generic
ubuntu@lp1927779-f:~$

tags: added: verification-done verification-done-focal
removed: verification-needed verification-needed-focal
Revision history for this message
Chris Halse Rogers (raof) wrote : Update Released

The verification of the Stable Release Update for initramfs-tools has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package initramfs-tools - 0.136ubuntu6.5

---------------
initramfs-tools (0.136ubuntu6.5) focal; urgency=medium

  * scripts/local-premount/resume:
    - Use readlink -f to correctly handle non-symlink $resume
      (LP: #1876570)
  * hook-functions:
    - when MODULES=list there will be no 'kernel' dir, so don't try
      to find anything there, as it will log an error
      (LP: #1927779)
  * hooks/fsck:
    - don't check PASSNO, always include fsck
      (LP: #1917780)

 -- Dan Streetman <email address hidden> Thu, 18 Mar 2021 14:48:17 -0400

Changed in initramfs-tools (Ubuntu Focal):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package initramfs-tools - 0.137ubuntu12.1

---------------
initramfs-tools (0.137ubuntu12.1) groovy; urgency=medium

  * scripts/local-premount/resume:
    - Use readlink -f to correctly handle non-symlink $resume
      (LP: #1876570)
  * hook-functions:
    - when MODULES=list there will be no 'kernel' dir, so don't try
      to find anything there, as it will log an error
      (LP: #1927779)
  * hooks/fsck:
    - don't check PASSNO, always include fsck
      (LP: #1917780)

 -- Dan Streetman <email address hidden> Thu, 18 Mar 2021 14:48:17 -0400

Changed in initramfs-tools (Ubuntu Groovy):
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.