linux-firmware 1.157.19 attempts to generate /boot/initrd.img-4.8.0-56, /boot/initrd.img-4.8.0 when no corresponding vmlinuz present

Bug #1773476 reported by B. C. Schmerker
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
initramfs-tools (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

With LinUX Images/-Extras 4.15.0-22-generic, 4.13.0-43-generic, 4.8.0-58-generic, 4.8.0-56-generic, and 4.4.0-127-generic installed, sudo dpkg-reconfigure linux-firmware returns the following to Console:

update-initramfs: Generating /boot/initrd.img-4.15.0-22-generic
update-initramfs: Generating /boot/initrd.img-4.13.0-43-generic
update-initramfs: Generating /boot/initrd.img-4.8.0-58-generic
update-initramfs: Generating /boot/initrd.img-4.8.0-56-generic
update-initramfs: Generating /boot/initrd.img-4.8.0-56
WARNING: missing /lib/modules/4.8.0-56
Ensure all necessary drivers are built into the linux image!
depmod: ERROR: could not open directory /lib/modules/4.8.0-56: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
depmod: WARNING: could not open /var/tmp/mkinitramfs_AlVft4/lib/modules/4.8.0-56/modules.order: No such file or directory
depmod: WARNING: could not open /var/tmp/mkinitramfs_AlVft4/lib/modules/4.8.0-56/modules.builtin: No such file or directory
update-initramfs: Generating /boot/initrd.img-4.8.0
WARNING: missing /lib/modules/4.8.0
Ensure all necessary drivers are built into the linux image!
depmod: ERROR: could not open directory /lib/modules/4.8.0: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
depmod: WARNING: could not open /var/tmp/mkinitramfs_OwnjIb/lib/modules/4.8.0/modules.order: No such file or directory
depmod: WARNING: could not open /var/tmp/mkinitramfs_OwnjIb/lib/modules/4.8.0/modules.builtin: No such file or directory
update-initramfs: Generating /boot/initrd.img-4.4.0-127-generic

Same configuration report for "Setting up linux-firmware..." with sudo apt(-get) install (--reinstall) linux-firmware and sudo apt-get upgrade linux-firmware. Therefore:

Reproducible: Always
Steps to reproduce: sudo apt install (--reinstall) linux-firmware or sudo dpkg-reconfigure linux-firmware.
Actual results, excepting actually installed Kernel Image packages:

update-initramfs: Generating /boot/initrd.img-4.8.0-56
WARNING: missing /lib/modules/4.8.0-56
Ensure all necessary drivers are built into the linux image!
depmod: ERROR: could not open directory /lib/modules/4.8.0-56: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
depmod: WARNING: could not open /var/tmp/mkinitramfs_AlVft4/lib/modules/4.8.0-56/modules.order: No such file or directory
depmod: WARNING: could not open /var/tmp/mkinitramfs_AlVft4/lib/modules/4.8.0-56/modules.builtin: No such file or directory
update-initramfs: Generating /boot/initrd.img-4.8.0
WARNING: missing /lib/modules/4.8.0
Ensure all necessary drivers are built into the linux image!
depmod: ERROR: could not open directory /lib/modules/4.8.0: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
depmod: WARNING: could not open /var/tmp/mkinitramfs_OwnjIb/lib/modules/4.8.0/modules.order: No such file or directory
depmod: WARNING: could not open /var/tmp/mkinitramfs_OwnjIb/lib/modules/4.8.0/modules.builtin: No such file or directory

Expected results, excepting actually installed Kernel Image packages:

No attempt to generate /boot/initrd.img for missing kernels, thus no warnings, errors or fatals.

UPDATE: Solved via sudo rm -rf /var/lib/initramfs-tools/4.8.0 && sudo rm -rf /var/lib/initramfs-tools/4.8.0-56. Recommend check for bug(s) in apt and dpkg of which this Bug may be a depend, as automatic housecleaning failed me in this specific case.

---
ApportVersion: 2.20.1-0ubuntu2.17
Architecture: amd64
CurrentDesktop: Unity
Dependencies:

DistroRelease: Ubuntu 16.04
InstallationDate: Installed on 2017-05-17 (373 days ago)
InstallationMedia: Ubuntu 16.04.2 LTS "Xenial Xerus" - Release amd64 (20170215.2)
Package: linux-firmware 1.157.19 [origin: unknown]
PackageArchitecture: all
ProcVersionSignature: Ubuntu 4.15.0-22.24~16.04.1-generic 4.15.17
Tags: xenial third-party-packages
Uname: Linux 4.15.0-22-generic x86_64
UnreportableReason: This is not an official Ubuntu package. Please remove any third party package and try again.
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
_MarkForUpload: True

Tags: xenial
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1773476

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
tags: added: bionic
Revision history for this message
B. C. Schmerker (bcschmerker) wrote : ProcCpuinfoMinimal.txt

apport information

affects: linux (Ubuntu) → linux-firmware (Ubuntu)
tags: added: apport-collected third-party-packages xenial
description: updated
Revision history for this message
B. C. Schmerker (bcschmerker) wrote : ProcEnviron.txt

apport information

tags: removed: apport-collected bionic third-party-packages
Changed in linux-firmware (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
B. C. Schmerker (bcschmerker) wrote : Re: linux-firmware 1.157.19 attempts to generate /boot/initrd.img-4.8.0-56, /boot/initrd.ing-4.8.0 when no corresponding vmlinuz present

Update: A purge and reinstall of linux-firmware produces same results. Summary therefore:

Reproducible: Always
Steps to reproduce: sudo apt install (--reinstall) linux-firmware or sudo dpkg-reconfigure linux-firmware.
Actual results, excepting actually installed Kernel Image packages:

update-initramfs: Generating /boot/initrd.img-4.8.0-56
WARNING: missing /lib/modules/4.8.0-56
Ensure all necessary drivers are built into the linux image!
depmod: ERROR: could not open directory /lib/modules/4.8.0-56: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
depmod: WARNING: could not open /var/tmp/mkinitramfs_AlVft4/lib/modules/4.8.0-56/modules.order: No such file or directory
depmod: WARNING: could not open /var/tmp/mkinitramfs_AlVft4/lib/modules/4.8.0-56/modules.builtin: No such file or directory
update-initramfs: Generating /boot/initrd.img-4.8.0
WARNING: missing /lib/modules/4.8.0
Ensure all necessary drivers are built into the linux image!
depmod: ERROR: could not open directory /lib/modules/4.8.0: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
depmod: WARNING: could not open /var/tmp/mkinitramfs_OwnjIb/lib/modules/4.8.0/modules.order: No such file or directory
depmod: WARNING: could not open /var/tmp/mkinitramfs_OwnjIb/lib/modules/4.8.0/modules.builtin: No such file or directory

Expected results, excepting actually installed Kernel Image packages:

No warning, errors or fatals.

Revision history for this message
B. C. Schmerker (bcschmerker) wrote :

Observed sequence of sbins when software-updater called apt-get upgrade linux-firmware: Cross-checking initramfs-tools and depmod for any misbehaviors that might exacerbate what I've observed.

DIOSCOVERED POINT TO INVESTIGATE: Potential for Dependency this Bug on Bug #701578 "purging a kernel sometimes fails to remove kernel in armel" in initramfs-tools (ubuntu).

description: updated
summary: linux-firmware 1.157.19 attempts to generate /boot/initrd.img-4.8.0-56,
- /boot/initrd.ing-4.8.0 when no corresponding vmlinuz present
+ /boot/initrd.img-4.8.0 when no corresponding vmlinuz present
Revision history for this message
Seth Forshee (sforshee) wrote :

This is not a problem with linux-firmware itself, it does is trigger a rebuild of the initrd for all installed kernels but it's initramfs-tools which does this. It will try to generate an initrd for all kernels with a file in /var/lib/initramfs-tools, so it sounds like you have a file there for that kernel but no corresponding directory for that kernel in /lib/modules.

Changing this bug report to be against initramfs-tools.

affects: linux-firmware (Ubuntu) → initramfs-tools (Ubuntu)
Revision history for this message
B. C. Schmerker (bcschmerker) wrote :

VERIFIED. Found a /var/lib/initramfs-tools/4.8.0 and a /var/lib/initramfs-tools/4.8.0-56 that shoudn't be there.

Revision history for this message
B. C. Schmerker (bcschmerker) wrote :

SOLVED via sudo rm -rf /var/lib/initramfs-tools/4.8.0 && sudo rm -rf /var/lib/initramfs-tools/4.8.0-56! Recommend check for bug(s) in apt and dpkg, as automatic housecleaning faile me in this specific case.

description: updated
description: updated
description: updated
Revision history for this message
B. C. Schmerker (bcschmerker) wrote :

Actually would have been a bug against either apt or dpkg, which failed to clean up /var after Kernel package removal. Since upgraded to ubuntu Focal, closing Bug.

Changed in initramfs-tools (Ubuntu):
status: Confirmed → Invalid
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.