#1138168 lintian: Do not warn for update-rc.d registration for openrc scripts

#1138168#5
Date:
2026-05-28 14:37:19 UTC
From:
To:
Hi,

linitan currently warns for scripts in /etc/init.d that are not
registered via update-rc.d:

W: openrc-native: script-in-etc-init.d-not-registered-via-update-rc.d
[etc/init.d/sysfs]

However, for native openrc init scripts (that start with
/usr/sbin/openrc-run) this warning is wrong, as openRC does not use
update-rc.d.

best,


werdahias



- -- System Information:
Debian Release: forky/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 7.0.7+deb14-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: OpenRC (via /run/openrc), PID 1: init
LSM: AppArmor: enabled

Versions of packages lintian depends on:
ii  appstream                       1.1.2-1+b1
ii  binutils                        2.46-3
ii  bzip2                           1.0.8-6+b2
ii  diffstat                        1.69-1
ii  dpkg                            1.23.7
ii  dpkg-dev                        1.23.7
ii  file                            1:5.46-5+b2
ii  gettext                         0.26-1
ii  gpg                             2.4.9-4
ii  intltool-debian                 0.35.0+20060710.6
ii  iso-codes                       4.20.1-1
ii  libapt-pkg-perl                 0.1.43
ii  libarchive-zip-perl             1.68-1
ii  libberkeleydb-perl              0.66-2+b1
ii  libcapture-tiny-perl            0.50-1
ii  libclone-perl                   0.50-1
ii  libconfig-tiny-perl             2.30-1
ii  libconst-fast-perl              0.014-2
ii  libcpanel-json-xs-perl          4.40-1+b1
ii  libdata-dpath-perl              0.60-1
ii  libdata-validate-domain-perl    0.15-1
ii  libdata-validate-uri-perl       0.07-3
ii  libdevel-size-perl              0.87-1
pn  libdigest-sha-perl              <none>
ii  libdpkg-perl                    1.23.7
ii  libemail-address-xs-perl        1.05-1+b4
pn  libencode-perl                  <none>
ii  libfile-basedir-perl            0.09-2
ii  libfile-find-rule-perl          0.35-1
ii  libfile-libmagic-perl           1.23-2+b2
ii  libfont-ttf-perl                1.06-2
ii  libhtml-html5-entities-perl     0.004-3
ii  libhtml-tokeparser-simple-perl  3.16-4
ii  libio-interactive-perl          1.027-1
ii  libipc-run3-perl                0.049-1
ii  libjson-maybexs-perl            1.004008-1
ii  liblist-compare-perl            0.55-2
ii  liblist-someutils-perl          0.59-1
ii  liblist-utilsby-perl            0.12-2
ii  libmldbm-perl                   2.05-4
ii  libmoo-perl                     2.005005-1
ii  libmoox-aliases-perl            0.001006-3
ii  libnamespace-clean-perl         0.27-2
ii  libpath-tiny-perl               0.150-1
ii  libperlio-gzip-perl             0.20-1+b4
ii  libperlio-utf8-strict-perl      0.010-1+b3
ii  libproc-processtable-perl       0.637-1+b2
ii  libregexp-wildcards-perl        1.05-3
ii  libsereal-decoder-perl          5.004+ds-1+b3
ii  libsereal-encoder-perl          5.004+ds-1+b3
ii  libsort-versions-perl           1.62-3
ii  libsyntax-keyword-try-perl      0.31-1
ii  libterm-readkey-perl            2.38-2+b4
ii  libtext-levenshteinxs-perl      0.03-5+b4
ii  libtext-markdown-discount-perl  0.18-1
ii  libtext-xslate-perl             3.5.9-2+b2
ii  libtime-duration-perl           1.21-2
ii  libtime-moment-perl             0.46-1
ii  libtimedate-perl                2.3500-1
ii  libunicode-utf8-perl            0.70-2
ii  liburi-perl                     5.34-2
ii  libwww-mechanize-perl           2.20-1
ii  libxml-libxml-perl              2.0207+dfsg+really+2.0134-8
ii  libyaml-libyaml-perl            0.906.0+ds-1
ii  lzip [lzip-decompressor]        1.26-1
ii  lzop                            1.04-2
ii  man-db                          2.13.1-1
ii  patchutils                      0.4.5-1
ii  perl [libversion-perl]          5.40.1-7+b1
ii  plzip [lzip-decompressor]       1.13-1
ii  t1utils                         1.41-4
ii  unzip                           6.0-29
ii  xz-utils                        5.8.3-1

lintian recommends no packages.

Versions of packages lintian suggests:
pn  binutils-multiarch     <none>
ii  libtext-template-perl  1.61-1

- -- no debconf information
-----BEGIN PGP SIGNATURE-----

iIsEARYKADMWIQQUWTv/Sl6/b+DpcW7svtu2B7myvgUCahhTHhUcd2VyZGFoaWFz
QGRlYmlhbi5vcmcACgkQ7L7btge5sr7VsAEAuNMOI3l9BMqxy9/eiSS0q+ERxnP4
mymcXHPBeRSXm/EBAJAqoK2Yw9YJmzPL5DMHnR45mJg681+ArY1SfFiDEP8J
=RBe/
-----END PGP SIGNATURE-----

#1138168#10
Date:
2026-05-28 14:47:43 UTC
From:
To:
https://www.debian.org/doc/debian-policy/ch-opersys.html#interfacing-with-init-systems

It seems wrong to use /etc/init.d for a different purpose than it is
intended for.

Ansgar

#1138168#15
Date:
2026-05-28 14:56:47 UTC
From:
To:
As mention in my other bug, openrc does support /etc/init.d as main
location. I assume this needs policy changed; nevertheless this a bug.

best,

werdahias

#1138168#20
Date:
2026-05-28 15:23:11 UTC
From:
To:
Hi,

No, this sounds like it really needs openrc changed.

Or support for LSB init scripts removed completely and replaced by
openrc. That would work too.

Ansgar

#1138168#25
Date:
2026-05-28 15:23:36 UTC
From:
To:
shutdown, and restart a Debian system while *without* using any sysvinit
scripts or dependencies. While this change is not in the archive yet,
this already has been tested in qemu to be working.

I can block those bug in the meantime by the ccorresponding openrc one.


best,

werdahias

#1138168#30
Date:
2026-05-28 17:13:06 UTC
From:
To:
Lintian can not go against policy. The policy currently says things more
or less explicitly pertaining to sysvinit, and is unclear on what openrc
supporting init.d should (or should not) mean for the packages using the
same.

If there are disagreements on how this should be handled, I would not want
lintian to recommend things otherwise.

Please file a bug for policy and add that as a blocking bug for this bug.
Once the policy is amended, or clarified by the policy maintainers, feel
free to give me a ping.

Please do so for #1138165 #1138169 and #1138167 that you filed earlier today
as well.

Thanks for working on openrc!

Best,
Nilesh