/etc/kernel/postrm.d/zz-zipl fails when removing an old kernel

Bug #1560024 reported by Louis Bouchard
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
s390-tools (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Running apt-get purge linux-image-extra-4.3.0-2-generic linux-image-4.3.0-2-generic when newer kernel is present results in /etc/kernel/postrm.d/zz-zipl failing with the following error :

Removing linux-image-4.3.0-2-generic (4.3.0-2.11) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.3.0-2-generic /boot/vmlinuz-4.3.0-2-generic
update-initramfs: Deleting /boot/initrd.img-4.3.0-2-generic
run-parts: executing /etc/kernel/postrm.d/kdump-tools 4.3.0-2-generic /boot/vmlinuz-4.3.0-2-generic
kdump-tools: Removing /var/lib/kdump/initrd.img-4.3.0-2-generic
run-parts: executing /etc/kernel/postrm.d/zz-zipl 4.3.0-2-generic /boot/vmlinuz-4.3.0-2-generic
Using config file '/etc/zipl.conf'
Error: Ramdisk file '/boot/initrd.img' in section 'ubuntu': No such file or directory
run-parts: /etc/kernel/postrm.d/zz-zipl exited with return code 1
Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/linux-image-4.3.0-2-generic.postrm line 328.
dpkg: error processing package linux-image-4.3.0-2-generic (--remove):
 subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
 linux-image-4.3.0-2-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

When the hooks runs, /boot/vmlinuz and /boot/initrd.img are :

caribou@caribou:~$ file /boot/vmlinuz /boot/initrd.img
/boot/vmlinuz: symbolic link to ./vmlinuz-4.3.0-2-generic
/boot/initrd.img: broken symbolic link to ./initrd.img-4.3.0-2-generic

The broken symlink to initrd.img-4.3.0-2-generic triggers the failure

Tags: s390x
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

please use s390x tag when filing s390x bug reports. ubuntu-bug adds it automatically, I completely missed this bug report, as I am only subscribed to tagged bugs =(

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Without a valid /boot/initrd.img we will not boot today. Are you trying to remove _all_ the kernels? And/or is there a reason why there is no active /boot/initrd.img ?

Note this looks like a very old installation, is /boot/initrd.img a symlink? if not please remove that file, and reinstall any kernel.

tags: added: s390x
Changed in s390-tools (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for s390-tools (Ubuntu) because there has been no activity for 60 days.]

Changed in s390-tools (Ubuntu):
status: Incomplete → Expired
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.