On Thu, Oct 22, 2026 at 02:59:41PM +0200, Detlef Vollmann wrote:

[...]

> Well, I know exactly why it fails and how to fix it.
> The prerm script calls 'invoke-rc.d' and these days it only
> uses systemd, but for this (very old) package there only exists
> an init.d script.
> So the fix is to provide a no-op hddparm.service.
> 
> But my question was about a debian package management tool
> that I can tell to ignore the return value of the prerm script.

I think this doesn't exist. Paradoxically, I think that makes sense:
a failure in a {pre,post}-{install,remove} script indicates an
exceptional situation the packagers haven't taken in account, thus
one they could't provide for; thus the intervention of a sysadmin
with knowledge seems appropriate.

A force argument for that seems like a dangerous trap. Better having
folks come here, as you did (I myself did, a while back :-)

Cheers
-- 
t

Attachment: signature.asc
Description: PGP signature

Reply via email to