update-initramfs stuck in hooks/framebuffer (linux-image-3.2.0-23-generic 3.2.0-23.36 failed to install/upgrade)

Bug #982514 reported by Václav Šmilauer
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
initramfs-tools (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

update-initrafs is stuck with 0% CPU usage. (the exit status is because I killed it manually to make the installation complete)

This is a piece pasted from htop's tree.

 └─ apt-get dist-upgrade
     └─ /usr/bin/dpkg --status-fd 77 --configure libglib2.0-data:all libglib2.0-0:amd64 libglib2.0-bin:amd64 libglib2.
        └─ /bin/sh /var/lib/dpkg/info/initramfs-tools.postinst triggered update-initramfs
           └─ /bin/sh /usr/sbin/update-initramfs -u
              └─ /bin/sh /usr/sbin/mkinitramfs -o /boot/initrd.img-3.2.0-21-generic.new 3.2.0-21-generic
                 └─ /bin/sh /usr/share/initramfs-tools/hooks/framebuffer
                    └─ /bin/sh /usr/share/initramfs-tools/hooks/framebuffer
                       ├─ awk /^insmod/ { print $2 }
                       └─ modprobe --set-version=3.2.0-21-generic --ignore-install --quiet --show-depends vesafb

This happened during a routine upgrade of precise today, with last dist-upgrade about one week ago. The error persists with subsequent "apt-get -f install" runs.

Setting up initramfs-tools (0.99ubuntu12) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-image-3.2.0-23-generic (3.2.0-23.36) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
The link /initrd.img is a dangling linkto /boot/initrd.img-3.2.0-23-generic
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 3.2.0-23-generic /boot/vmlinuz-3.2.0-23-generic
Error! Bad return status for module build on kernel: 3.2.0-23-generic (x86_64)
Consult /var/lib/dkms/blcr/0.8.2/build/make.log for more information.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.2.0-23-generic /boot/vmlinuz-3.2.0-23-generic
update-initramfs: Generating /boot/initrd.img-3.2.0-23-generic

The blcr make.log file is attached.

ProblemType: Package
DistroRelease: Ubuntu 12.04
Package: linux-image-3.2.0-23-generic 3.2.0-23.36
ProcVersionSignature: Ubuntu 3.2.0-21.34-generic 3.2.13
Uname: Linux 3.2.0-21-generic x86_64
NonfreeKernelModules: nvidia fglrx
ApportVersion: 2.0.1-0ubuntu3
Architecture: amd64
Date: Sun Apr 15 20:34:23 2012
ErrorMessage: run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 143
SourcePackage: initramfs-tools
Title: package linux-image-3.2.0-23-generic 3.2.0-23.36 failed to install/upgrade: run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 143
UpgradeStatus: Upgraded to precise on 2012-03-12 (34 days ago)

Revision history for this message
Václav Šmilauer (eudoxos) wrote :
Revision history for this message
Václav Šmilauer (eudoxos) wrote :

After "dpkg --purge blcr-dkms", the blcr error message is gone, but the problem persists: update-initramfs is stuck the same as before.

tags: removed: need-duplicate-check
summary: - package linux-image-3.2.0-23-generic 3.2.0-23.36 failed to
- install/upgrade: run-parts: /etc/kernel/postinst.d/initramfs-tools stuck
- at update-initramfs
+ update-initramfs stuck (linux-image-3.2.0-23-generic 3.2.0-23.36 failed
+ to install/upgrade)
Revision history for this message
Václav Šmilauer (eudoxos) wrote : Re: update-initramfs stuck (linux-image-3.2.0-23-generic 3.2.0-23.36 failed to install/upgrade)

(A workaround, to at least have a bootable system, is to temporarily add "exit 0" at the beginning of /usr/share/initramfs-tools/hooks/framebuffer).

summary: - update-initramfs stuck (linux-image-3.2.0-23-generic 3.2.0-23.36 failed
- to install/upgrade)
+ update-initramfs stuck in hooks/framebuffer (linux-
+ image-3.2.0-23-generic 3.2.0-23.36 failed to install/upgrade)
Revision history for this message
Václav Šmilauer (eudoxos) wrote :

Perhaps a relevant information is that the system was booted in rescue mode, then used via "init 2" normally.

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
Christian Obst (christian-obst) wrote :

I have the exact same thing. I also had it in oneiric after some time precise came out (which is why I installed Precise, I thought it was fixed there).

Revision history for this message
kderichs (kderichs) wrote :

In my case the script /usr/share/initramfs-tools/hooks/framebuffer hangs at the line
copy_modules_dir kernel/drivers/gpu if i comment it out the rest works

I looked into the folder and it contains a subfolder drm and no kernel modules

Revision history for this message
kderichs (kderichs) wrote :

I found a workaround for my system.

In the script /usr/share/initramfs-tools/hook-functions there is a fundtionc
manual_add_modules() it modprobes all the kernel modules. If this is executed for the i915.ko modprobe
never comes back. I also tried this as root on a console, which dosen't work either.
modprobe i915

I delete the kernel module and every thing works fine.

Revision history for this message
Lars Karlsson (mintlars) wrote :

I can confirm that kderichs workaround works. removing or renaming i915.ko seem to make update-initrams roll again.

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.