Public bug reported:

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

** Affects: s390-tools (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1560024

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/s390-tools/+bug/1560024/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to