initramfs hook fails with ".: 17: Can't open /etc/default/keyboard" when /etc/default/keyboard doesn't exists for some reason

Bug #701954 reported by Paul Sladen
514
This bug affects 62 people
Affects Status Importance Assigned to Milestone
console-setup (Ubuntu)
Fix Released
High
Colin Watson
Natty
Fix Released
High
Colin Watson

Bug Description

Binary package hint: initramfs-tools

Tracking natty daily, fail to dist-upgrade, apport popped up... I'll have to see what gets attached before I can see what the cause is!

  update-initramfs: Generating /boot/initrd.img-2.6.37-12-generic

  .: 17: Can't open /etc/default/keyboard

  E: /usr/share/initramfs-tools/hooks/console_setup failed with return 127.

  update-initramfs: failed for /boot/initrd.img-2.6.37-12-generic

  Failed to create initrd image.

  dpkg: error processing linux-image-2.6.37-12-generic (--configure):

   subprocess installed post-installation script returned error exit status 2

ProblemType: Package
DistroRelease: Ubuntu 11.04
Package: linux-image-2.6.37-12-generic 2.6.37-12.26
ProcVersionSignature: Ubuntu 2.6.37-10.24-generic 2.6.37-rc6
Uname: Linux 2.6.37-10-generic i686
Architecture: i386
Date: Wed Jan 12 15:46:59 2011
ErrorMessage: subprocess installed post-installation script returned error exit status 2
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha i386 (20101202)
SourcePackage: initramfs-tools
Title: package linux-image-2.6.37-12-generic 2.6.37-12.26 failed to install/upgrade: subprocess installed post-installation script returned error exit status 2

Revision history for this message
Paul Sladen (sladen) wrote :
description: updated
description: updated
summary: package linux-image-2.6.37-12-generic 2.6.37-12.26 failed to
install/upgrade: subprocess installed post-installation script returned
- error exit status 2
+ error exit status 2 (Can't open /etc/default/keyboard)
summary: - package linux-image-2.6.37-12-generic 2.6.37-12.26 failed to
- install/upgrade: subprocess installed post-installation script returned
- error exit status 2 (Can't open /etc/default/keyboard)
+ initramfs fails with ".: 17: Can't open /etc/default/keyboard" when
+ /etc/default/keyboard doesn't exists for some reason
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote : Re: initramfs fails with ".: 17: Can't open /etc/default/keyboard" when /etc/default/keyboard doesn't exists for some reason

Thanks for your report.
Affecting to console-setup

The fix for bug 634402 should have prevented this crash.

affects: initramfs-tools (Ubuntu) → console-setup (Ubuntu)
Changed in console-setup (Ubuntu):
importance: Undecided → High
status: New → Triaged
summary: - initramfs fails with ".: 17: Can't open /etc/default/keyboard" when
- /etc/default/keyboard doesn't exists for some reason
+ initramfs hook fails with ".: 17: Can't open /etc/default/keyboard"
+ when /etc/default/keyboard doesn't exists for some reason
Colin Watson (cjwatson)
Changed in console-setup (Ubuntu Natty):
assignee: nobody → Colin Watson (cjwatson)
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package console-setup - 1.57ubuntu3

---------------
console-setup (1.57ubuntu3) natty; urgency=low

  * Correct fix for LP: #634402: explicitly check readability of
    /etc/default/keyboard and /etc/default/console-setup in initramfs hooks,
    rather than trying to guard '.' with '||' which doesn't work
    (LP: #701954).
 -- Colin Watson <email address hidden> Thu, 20 Jan 2011 20:55:01 +0000

Changed in console-setup (Ubuntu Natty):
status: Fix Committed → Fix Released
Revision history for this message
xtsbdu3reyrbrmroezob (xtsbdu3reyrbrmroezob) wrote :

Still appears broken to me as of today in package repositories...

Revision history for this message
Colin Watson (cjwatson) wrote : Re: [Bug 701954] Re: initramfs hook fails with ".: 17: Can't open /etc/default/keyboard" when /etc/default/keyboard doesn't exists for some reason

Kristian, can you please provide a full transcript of what you're
seeing, and state the versions of console-setup and
keyboard-configuration that you have installed?

To post a comment you must log in.