On Sun, 2025-05-04 at 08:28 +0200, Helmut Grohne wrote: [...] > Judging from the code, you are aware that presence of linux-base is not > a given during postrm. In the absence of linux-base, hook execution is > skipped with a message rather than having things fail. Arguably, > uninstalling linux-base is an unusual thing to do.
Yes, linux-base should be installed on any system that needs an official kernel package (i.e. it's not a container and doesn't use a custom kernel) and then should never be removed. > Can you give some > argument why that skipping of postrm hooks (that didn't happen earlier) > is a good compromise? I was working on the basis that a postrm script really must not fail as this will leave the package in a weird state. But then skipping those hooks means that, for example, the initramfs image won't be deleted, and GRUB won't remove the kernel's menu entry. I don't know what's worse, or how much it matters given the unlikeliness of removing linux-base. Ben. -- Ben Hutchings Tomorrow will be cancelled due to lack of interest.
signature.asc
Description: This is a digitally signed message part