• Re: Adding Pre-Depends from linux-image packages to linux-base

    From Ben Hutchings@21:1/5 to Helmut Grohne on Tue May 13 22:50:01 2025
    XPost: linux.debian.kernel

    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.

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEErCspvTSmr92z9o8157/I7JWGEQkFAmgjrrYACgkQ57/I7JWG EQmVtxAAkgY66v/wWJopoa4BWZTUjYhPwue1iPDo9YVK+CUPAEcRkQIU1EP9JJnB IKcpfadsmQe7pK9e5S9svVtqDl1ck1udkEAlzCEQozZ2ESULfkviN+wHY5JeyCA1 vg2RHtlSZg6vmafr1UOVjuSv/JKGJJLt9po5xlxMFetX7juF9epmo/GnhZCZeiPy z2c2Mu0wgnHgBysx9Uym0uVZWmmVhAOojKZHCV33hqT9UiED5QB/qkSs0PVN1/cI oMRo1PmMNA6xC7u9Y2RvOff03O0+6cFePuUD5nNMA1nZfpfo6Nh87NMRkrqWKGMW J9dpv462rPfhexZgYZLFffiT7MXfMVCkC5ANxNkuATnvCqRmuN4pqhpFuaddmgVx 3+vgOmFgJKbWB9QINvYM0iCKknPCRS5JUzr5bKBEeBHWfj3kwv0Qc+d1suisnlFQ wrwWm/Akh0wikeRXl6lqj92X90/7R5eP8o1+Ii5TmkChGYM2pgs6lkxrYwpGo5nL V68pW6dNuTwuYfjpsEh5gZABaCq5x8W+oO6XC/T96k9OmcxIh7T4H67kGZ9CC5gh vWDxGFvJQAhRZZ2Z+JaBatYosC1HV3jDVYxGJ7HzfVinRzBaZ5HRc97Dr3J1Uq+D GTgBxthNaxVnLgm3t8mlVdCrkXSei4+EJB2RI3HnehqgmaNHboc=
    =l85N
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)