Devuan bug report logs - #881
invoke-rc.d: Policy layer may override runlevel constraint

version graph

Package: init-system-helpers; Maintainer for init-system-helpers is Devuan Dev Team <devuan-dev@lists.dyne.org>; Source for init-system-helpers is src:init-system-helpers.

Reported by: Opty <opty77@gmail.com>

Date: Tue, 1 Apr 2025 12:16:02 UTC

Severity: normal

Tags: debian, moreinfo

Merged with 882, 883, 884

Found in version init-system-helpers/1.65.2devuan1

Full log


Message #53 received at 881@bugs.devuan.org (full text, mbox, reply):

Received: (at 881) by bugs.devuan.org; 3 Apr 2025 11:18:05 +0000
Return-Path: <opty77@gmail.com>
Delivered-To: bugs@devuan.org
Received: from email.devuan.org [2a01:4f9:fff1:13::5fd9:f9e4]
	by doc.devuan.org with IMAP (fetchmail-6.4.16)
	for <debbugs@localhost> (single-drop); Thu, 03 Apr 2025 11:18:05 +0000 (UTC)
Received: from email.devuan.org
	by email.devuan.org with LMTP
	id XWAKOSZu7mccVgAAmSBk0A
	(envelope-from <opty77@gmail.com>)
	for <bugs@devuan.org>; Thu, 03 Apr 2025 11:16:54 +0000
Received: by email.devuan.org (Postfix, from userid 109)
	id CED43642; Thu,  3 Apr 2025 11:16:54 +0000 (UTC)
Authentication-Results: email.devuan.org;
	dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=k48bm47I;
	dkim-atps=neutral
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on email.devuan.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID,
	DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,
	T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6
Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2607:f8b0:4864:20::334; helo=mail-ot1-x334.google.com; envelope-from=opty77@gmail.com; receiver=<UNKNOWN> 
Received: from mail-ot1-x334.google.com (mail-ot1-x334.google.com [IPv6:2607:f8b0:4864:20::334])
	by email.devuan.org (Postfix) with ESMTPS id DAECF4B
	for <881@bugs.devuan.org>; Thu,  3 Apr 2025 11:16:53 +0000 (UTC)
Received: by mail-ot1-x334.google.com with SMTP id 46e09a7af769-72bff73ce3bso145808a34.1
        for <881@bugs.devuan.org>; Thu, 03 Apr 2025 04:16:53 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20230601; t=1743679011; x=1744283811; darn=bugs.devuan.org;
        h=content-transfer-encoding:cc:to:subject:message-id:date:from
         :in-reply-to:references:mime-version:from:to:cc:subject:date
         :message-id:reply-to;
        bh=BczYVsGeAusbkwefoira6wmaD/71IYBB/x38h02Xh7I=;
        b=k48bm47IPPi+di0p0xcfs0Xz6MSI8kEici7icSMEBYKdx3qu8nVJrdXZnly20cN0Oc
         FEQ2/paB/I7fUx/dNajAzS64NjEPBcAcowlA02bp6cBNNTpLhx/tgSmg7CtL/36Q/LSb
         agekCEA2QgGrd/eiG/XuV5SVwZ8tG9J5mLSv5IeK5yvMad/Qrq+0fdQe43cPJK/2B/Pj
         U3Kvclq2TVGhuSia04ATqa6nhBj8ah45Db0j+e6S+0yNpuvir9TPLHPdilQksf0Db8HI
         sRd+6jqbX+xeKDg6W6+zzZro+AFbIAKrG6mVwIrdelBGFNCpx32wymmf/cRx/PBo3OeL
         KiIA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20230601; t=1743679011; x=1744283811;
        h=content-transfer-encoding:cc:to:subject:message-id:date:from
         :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc
         :subject:date:message-id:reply-to;
        bh=BczYVsGeAusbkwefoira6wmaD/71IYBB/x38h02Xh7I=;
        b=dcRiJd4ttO8FkSH2SRG8hyxG7ZJs7aLM3AMtXxEcNoBU2vULijC+KnLnbhzsVTFTz6
         pNMN+J5g87kypO1ocjxdKZONX03AaEP3CU7hV3tyCuLOqtlsVYJnXHkzJzBTn9wt87gf
         BkGozH/NCuQHp6v+j0lroCgoen10iq6D1PeaFrOJH5bCnNRbTdYvcCZZzFFd53rWfgFf
         ireVqmTWbSMrATFED3X09yV1GOGg067jQr5MMiIy3P/yLt8YedJTir7KeIOezWBKxcs5
         UbltQq8hztdBwPkorFXD8uJHGdwqGnQYK8IdCoWnYZzsHLgwuzYRHFHq/oGSL1x+1Dr4
         6yVw==
X-Gm-Message-State: AOJu0Yx0dco5lI7D2CajwjtZM0IuPUqz/ELVjj93X4qX3XTp5I7Dj/Xv
	+SPhWfl65NHlaEBFkyx55jlhX7tNXvsgxJYFx1FDBnJrBhux1Lx4V2lxbaVk/AMfoXNvl5AbFsu
	VA5Ou2H0Pdu8AelM2W8HjNYYemgs=
X-Gm-Gg: ASbGncuQYsaiI9V8QfBA7/A8j6x7fnt8xcN7LKDGSXxpAyBL7RR08ARDoqGyPsUygyW
	aVfH/x7D3DI8jXZpSsC8EFZWY79+vlBSobGc0r/GhzQhWrVAWLa6l/9njYep05XWKBAeAiT6ng/
	Xuw31/ZAQpO+a8QllxppuPRxrtvjvacQhFXg==
X-Google-Smtp-Source: AGHT+IECwuNSkh0TQsQRlyS0MwwiOKmhmSreBQEPiEaIefMjVzKMRmEvUQ6ccuTAfzGHsbEHq0tGMnaDEhO68/+ncKM=
X-Received: by 2002:a05:6808:1816:b0:3f6:80e3:f897 with SMTP id
 5614622812f47-400295fe4d3mr2012474b6e.1.1743679011360; Thu, 03 Apr 2025
 04:16:51 -0700 (PDT)
MIME-Version: 1.0
References: <CAERDJOGBvwgsTJ7rL-MaUqLmBk7kBd12rtuAj1hDQt0-U9Ktug@mail.gmail.com>
 <Z-wTFqfiCrvD9Exb@hindley.org.uk> <CAERDJOG_4mnRRA7oFvcbMFoiZitExizd=jR=HqyL9dT15ORFyQ@mail.gmail.com>
 <Z-1gvG_pT6x0FsRf@hindley.org.uk> <CAERDJOGezboa6AzE9oJt-JKPtqEiE97fJ8DPapPmCxQhjCBTJw@mail.gmail.com>
 <Z-4u39maG54wqFRF@hindley.org.uk>
In-Reply-To: <Z-4u39maG54wqFRF@hindley.org.uk>
From: Opty <opty77@gmail.com>
Date: Thu, 3 Apr 2025 13:16:40 +0200
X-Gm-Features: ATxdqUGYn_wSuI1XhNZkBJhaQEvkakGwAn2hACBu8Ye4FNlNX1IcJwIHBeEG8KA
Message-ID: <CAERDJOG2SLOG-=ouK4QwDc_-d4CQz=Maf1yRO9-1ioBvYhuWBw@mail.gmail.com>
Subject: Re: bug#881: invoke-rc.d: Policy layer may override runlevel constraint
To: Mark Hindley <mark@hindley.org.uk>
Cc: 881@bugs.devuan.org
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
On Thu, Apr 3, 2025 at 8:46 AM Mark Hindley <mark@hindley.org.uk> wrote:
> On Wed, Apr 02, 2025 at 11:27:15PM +0200, Opty wrote:
> > You may want to upgrade ASAP but restart when convenient (e.g. during
> > low traffic at night) but maybe also a habit from Slackware in my
> > case.
>
> That isn't conventional Debian practice.

I could continue using the policy layer unmodified, selectively allow
what I need (extra work) and keep denied the rest

-or-

modify invoke-rc.d or rather policy-rc.d to check
$DPKG_MAINTSCRIPT_NAME (to detect preinst, postinst, prerm or postrm
script), crosscheck $DPKG_MAINTSCRIPT_PACKAGE vs. $INITSCRIPTID
(substring of each other) to allow calling other scripts and
eventually do nothing, maybe ask the administrator.

Both seem unintentional error- or side-effect-prone.

I could also just modify invoke-rc.d to skip the querypolicy call in
case of K link.

> > > To start or not on install is specified in the package by the maintainer.
> >
> > On our VPS I haven't found any which doesn't start service on package install.
>
> It certainly isn't common. But, for example, look at src:netperf: d/rules has
>
> override_dh_installinit:
>         dh_installinit --no-enable --no-start
>
> and the daemon is not started on install.

Maybe dh_installinit could support conditional start based on
environment variable.

Regards,
Opty

Send a report that this bug log contains spam.


Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Fri Apr 4 15:34:22 2025;