update-initramfs fails for MODULES=dep when root is on nvme device

Bug #1532146 reported by Louis Bouchard
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
initramfs-tools (Ubuntu)
Fix Released
Medium
Unassigned
Wily
New
Undecided
Unassigned

Bug Description

If MODULES=dep is used to create a smaller initramfs, it will fail if the system has its root on NVME device.

# grep ^MODULES /etc/initramfs-tools/initramfs.conf
MODULES=dep
# update-initramfs -u
update-initramfs: Generating /boot/initrd.img-3.19.0-43-generic
mkinitramfs: for root /dev/nvme0n1p1 missing nvme /sys/block/ entry
mkinitramfs: workaround is MODULES=most
mkinitramfs: Error please report the bug
update-initramfs: failed for /boot/initrd.img-3.19.0-43-generic with 1.

/usr/share/initramfs-tools/hook-functions is missing an entry for NVME devices so it falls back to a default value which is inadequate

I will open a bug in Debian as well which has the same issue in Sid.

The upcoming version in experimental changes the logic which may or may not fix the problem.

Tags: patch
Louis Bouchard (louis)
Changed in initramfs-tools (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → Louis Bouchard (louis-bouchard)
Revision history for this message
Louis Bouchard (louis) wrote :

Here is the debdiff for the fix

Revision history for this message
Louis Bouchard (louis) wrote :

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=785147 provide a fix for this issue in the version in experimental. This is not yet in Sid so not merged into Xenial

tags: added: patch
Louis Bouchard (louis)
Changed in initramfs-tools (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Louis Bouchard, are you going to upload this please?

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

This bug was fixed in the package initramfs-tools - 0.120ubuntu7

---------------
initramfs-tools (0.120ubuntu7) xenial; urgency=medium

  [ Ben Hutchings ]
  * hook-functions: Include drivers/nvme in block driver modules (Closes:
    #807000) (LP: #1524879)

  [ Louis Bouchard ]
  * Add support for NVME devices when MODULES=dep is used (LP: #1532146)

 -- Andy Whitcroft <email address hidden> Thu, 21 Jan 2016 16:10:15 +0000

Changed in initramfs-tools (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Stefan Saraev (seo) wrote :

now update-initramfs fails for MODULES=dep when root is NOT on nvme device

Louis Bouchard (louis)
Changed in initramfs-tools (Ubuntu):
assignee: Louis Bouchard (louis-bouchard) → nobody
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.