Bug 417774 (full-boot-after-update)

Summary: update breaks /boot
Product: [Applications] Discover Reporter: kdeuser
Component: PackageKitAssignee: Dan Leinir Turthra Jensen <leinir>
Status: RESOLVED UPSTREAM    
Severity: crash CC: aleixpol, nate
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
URL: https://github.com/hughsie/PackageKit/issues/
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description kdeuser 2020-02-17 06:12:47 UTC
SUMMARY
discover doesn't autoremove old images on linux updates and breaks /boot

STEPS TO REPRODUCE
1. update in discover when /boot is almost full of images

OBSERVED RESULT
discover displays "update-initramfs failed" and kernel panics on next boot because it can't mount the image.
booting with an older kernel from advanced options in grub and running `sudo apt autoremove` and `sudo update-initramfs` fixes that

EXPECTED RESULT
discover removes old kernels in /boot and linux works

SOFTWARE/OS VERSIONS
Linux: 5.3.0-28-generic (ubuntu)
KDE Plasma Version: 5.18.0
KDE Frameworks Version: 5.67.0
Qt Version: 5.13.2

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2020-02-17 19:59:20 UTC
Yikes, that's bad.

This is going to be PackageKit's fault though, not Discover. Please report upstream at https://github.com/hughsie/PackageKit/issues/