Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #87559

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

From Ben Hutchings <ben@decadent.org.uk>
Newsgroups linux.debian.devel, linux.debian.kernel
Subject Re: Adding Pre-Depends from linux-image packages to linux-base
Date 2025-05-13 22:50 +0200
Message-ID <KM4Jz-2UCc-13@gated-at.bofh.it> (permalink)
References <KIlIZ-sYa-5@gated-at.bofh.it> <KJsyJ-1au3-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

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.

Back to linux.debian.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Adding Pre-Depends from linux-image packages to linux-base Ben Hutchings <ben@decadent.org.uk> - 2025-05-03 16:10 +0200
  Re: Adding Pre-Depends from linux-image packages to linux-base Bill Allombert <ballombe@debian.org> - 2025-05-04 18:00 +0200
    Re: Adding Pre-Depends from linux-image packages to linux-base Ben Hutchings <ben@decadent.org.uk> - 2025-05-04 18:50 +0200
    Re: Adding Pre-Depends from linux-image packages to linux-base Simon McVittie <smcv@debian.org> - 2025-05-04 19:20 +0200
  Re: Adding Pre-Depends from linux-image packages to linux-base Helmut Grohne <helmut@subdivi.de> - 2025-05-06 17:40 +0200
    Re: Adding Pre-Depends from linux-image packages to linux-base Ben Hutchings <ben@decadent.org.uk> - 2025-05-13 22:50 +0200

csiph-web