initramfs-tools hook-functions error causes failure

Bug #1539826 reported by Jay Vosburgh
30
This bug affects 4 people
Affects Status Importance Assigned to Milestone
initramfs-tools (Ubuntu)
Fix Released
High
Andy Whitcroft

Bug Description

The /usr/share/initramfs-tools/hook-functions contains what appears to be a variable name update (from root to dev_node) error.
It appears that one instance of root was not updated correctly; this causes mkinitramfs to fail with the error:

mkinitramfs: for device /dev/vda1 missing vda1 /sys/block/ entry
mkinitramfs: workaround is MODULES=most
mkinitramfs: Error please report the bug

A trivial patch that appears to resolve this is attached.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: initramfs-tools 0.120ubuntu7 [modified: usr/share/initramfs-tools/hook-functions]
ProcVersionSignature: Ubuntu 4.3.0-7.18-generic 4.3.3
Uname: Linux 4.3.0-7-generic x86_64
ApportVersion: 2.19.4-0ubuntu1
Architecture: amd64
CurrentDesktop: Unity
Date: Fri Jan 29 17:44:20 2016
InstallationDate: Installed on 2016-01-29 (0 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Alpha amd64 (20160129)
PackageArchitecture: all
SourcePackage: initramfs-tools
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Jay Vosburgh (jvosburgh) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "hook-functions variable name fix" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
tags: added: rls-x-incoming
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in initramfs-tools (Ubuntu):
status: New → Confirmed
Revision history for this message
Marko Stanković (sm4rk0) wrote :

I can confirm both the bug (with /dev/sda1 on my computers) and that Jay's patch works. I would like to make a fix, if that's OK (and if it's needed). This would be "my" first fix and I'm following this tutorial: http://packaging.ubuntu.com/html/fixing-a-bug.html

Revision history for this message
Marko Stanković (sm4rk0) wrote :

I've tried proposing the merge but got "lp:~sm4rk0/initramfs-tools is not mergeable into this repository."
This is where I pushed the patched hook-functions:
git+ssh://git.launchpad.net/~sm4rk0/initramfs-tools

Revision history for this message
Andy Whitcroft (apw) wrote :

@Marko -- thanks for that. As I have a 0.122 merge on my packaging branch I have manually merged this and uploaded it.

Changed in initramfs-tools (Ubuntu):
status: Confirmed → In Progress
importance: Undecided → High
assignee: nobody → Andy Whitcroft (apw)
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

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

  [ Marko Stankovic ]
  * hook-functions: fix NVME typo (LP: #1539826)

 -- Andy Whitcroft <email address hidden> Wed, 03 Feb 2016 09:01:52 +0000

Changed in initramfs-tools (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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