purging a kernel causes unneeded recreation of initramfs

Bug #1798315 reported by Ralf Hildebrandt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

I removed an old, not currently booted kernel:

 apt-get purge linux-image-4.4.0-135-generic linux-image-extra-4.4.0-135-generic
Paketlisten werden gelesen … Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen. … Fertig
Die folgenden Pakete werden ENTFERNT:
  linux-image-4.4.0-135-generic* linux-image-extra-4.4.0-135-generic*
0 aktualisiert, 0 neu installiert, 2 zu entfernen und 0 nicht aktualisiert.
Nach diesem Vorgang werden 224 M B Plattenplatz freigegeben.
Möchten Sie fortfahren? [J/n] y
(Datenbank wird gelesen … 130438 Dateien und Verzeichnisse sind derzeit installiert.)
linux-image-extra-4.4.0-135-generic (4.4.0-135.161) wird entfernt …
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-135-generic /boot/vmlinuz-4.4.0-135-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-135-generic /boot/vmlinuz-4.4.0-135-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-135-generic
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.4.0-135-generic /boot/vmlinuz-4.4.0-135-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 4.4.0-135-generic /boot/vmlinuz-4.4.0-135-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.4.0-135-generic /boot/vmlinuz-4.4.0-135-generic
Grub-Konfigurationsdatei wird generiert …
Linux-Abbild gefunden: /boot/vmlinuz-4.4.0-137-generic
initrd-Abbild gefunden: /boot/initrd.img-4.4.0-137-generic
Linux-Abbild gefunden: /boot/vmlinuz-4.4.0-135-generic
initrd-Abbild gefunden: /boot/initrd.img-4.4.0-135-generic
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
erledigt
Konfigurationsdateien von linux-image-extra-4.4.0-135-generic (4.4.0-135.161) werden gesäubert …
linux-image-4.4.0-135-generic (4.4.0-135.161) wird entfernt …
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.4.0-135-generic /boot/vmlinuz-4.4.0-135-generic
update-initramfs: Deleting /boot/initrd.img-4.4.0-135-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.4.0-135-generic /boot/vmlinuz-4.4.0-135-generic
Grub-Konfigurationsdatei wird generiert …
Linux-Abbild gefunden: /boot/vmlinuz-4.4.0-137-generic
initrd-Abbild gefunden: /boot/initrd.img-4.4.0-137-generic
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
erledigt
The link /vmlinuz.old is a damaged link
Removing symbolic link vmlinuz.old
 you may need to re-run your boot loader[grub]
The link /initrd.img.old is a damaged link
Removing symbolic link initrd.img.old
 you may need to re-run your boot loader[grub]
Konfigurationsdateien von linux-image-4.4.0-135-generic (4.4.0-135.161) werden gesäubert …
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.4.0-135-generic /boot/vmlinuz-4.4.0-135-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.4.0-135-generic /boot/vmlinuz-4.4.0-135-generic

Although the kernel was scheduled for removal, the lenghty creation of initramfs was run....

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: linux-image-generic 4.4.0.137.143
ProcVersionSignature: Ubuntu 4.4.0-137.163-generic 4.4.144
Uname: Linux 4.4.0-137-generic x86_64
AlsaDevices:
 total 0
 crw-rw---- 1 root audio 116, 1 Okt 17 11:18 seq
 crw-rw---- 1 root audio 116, 33 Okt 17 11:18 timer
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
ApportVersion: 2.20.1-0ubuntu2.18
Architecture: amd64
ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
Date: Wed Oct 17 11:21:19 2018
HibernationDevice: RESUME=UUID=b1ab759c-f679-4e71-af05-24c040877711
InstallationDate: Installed on 2012-05-07 (2353 days ago)
InstallationMedia: Ubuntu-Server 12.04 LTS "Precise Pangolin" - Release amd64 (20120424.1)
IwConfig:
 lo no wireless extensions.

 ens192 no wireless extensions.
Lsusb: Error: command ['lsusb'] failed with exit code 1:
MachineType: VMware, Inc. VMware Virtual Platform
PciMultimedia:

ProcFB: 0 svgadrmfb
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-4.4.0-137-generic root=/dev/mapper/vgsys-root ro
RelatedPackageVersions:
 linux-restricted-modules-4.4.0-137-generic N/A
 linux-backports-modules-4.4.0-137-generic N/A
 linux-firmware 1.157.20
RfKill: Error: [Errno 2] No such file or directory: 'rfkill'
SourcePackage: linux
UpgradeStatus: Upgraded to xenial on 2017-06-10 (493 days ago)
dmi.bios.date: 09/21/2015
dmi.bios.vendor: Phoenix Technologies LTD
dmi.bios.version: 6.00
dmi.board.name: 440BX Desktop Reference Platform
dmi.board.vendor: Intel Corporation
dmi.board.version: None
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 1
dmi.chassis.vendor: No Enclosure
dmi.chassis.version: N/A
dmi.modalias: dmi:bvnPhoenixTechnologiesLTD:bvr6.00:bd09/21/2015:svnVMware,Inc.:pnVMwareVirtualPlatform:pvrNone:rvnIntelCorporation:rn440BXDesktopReferencePlatform:rvrNone:cvnNoEnclosure:ct1:cvrN/A:
dmi.product.name: VMware Virtual Platform
dmi.product.version: None
dmi.sys.vendor: VMware, Inc.

Revision history for this message
Ralf Hildebrandt (ralf-hildebrandt) wrote :
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Changed in linux (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Triaged
Brad Figg (brad-figg)
tags: added: cscc
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.