init-system-helpers updates for native openrc

Mark Hindley mark at hindley.org.uk
Sun Nov 22 13:30:44 GMT 2026


Hi,

I have been working on better init-system-helpers support for openrc. I *think*
the intention of i-s-h and Debian Policy is that symlinks for the various
init-systems should always be present and handled by a package's maintscripts,
making switching possible (theoretically, at least!).  However, the existing
openrc support is only activated if openrc is installed and rc-update is
present.

Attached are patches to:-

 1. Fix the longstanding update-rc.d remove not actually requiring -f bug (#680293)

 2. Always handle openrc symlinks beneath /etc/runlevels in update-rc.d.

 3. Add native openrc runlevel support to invoke-rc.d.

 4. Update manpages.

 5. Incidental cleanup of some unused variables.

This *should* mean that existing debhelper postinst fragments also work for
openrc and we only have to add handling for d/package.openrc to
dh_installinit. I anticipate this will be much easier than a whole new dh_
module and/or helper and will avoid significant changes to Policy. It should
also require minimal maintainer change within packages other than adding
d/package.openrc.

Thoughts on the approach and any comments or testing would be fabulous.

Josch, I have tried to continue your existing DPKG_ROOT work and support. Please
could you check I have incorporated that correctly? Thanks.

Best wishes

Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-update-rc.d-always-manage-openrc-symlinks.patch
Type: text/x-diff
Size: 4512 bytes
Desc: not available
URL: <http://www.chiark.greenend.org.uk/pipermail/debian-init-diversity/attachments/20261122/b5255161/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-invoke-rc.d-handle-native-openrc-runlevels.patch
Type: text/x-diff
Size: 1527 bytes
Desc: not available
URL: <http://www.chiark.greenend.org.uk/pipermail/debian-init-diversity/attachments/20261122/b5255161/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-invoke-rc.d-8-document-native-openrc.patch
Type: text/x-diff
Size: 1677 bytes
Desc: not available
URL: <http://www.chiark.greenend.org.uk/pipermail/debian-init-diversity/attachments/20261122/b5255161/attachment-0002.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-update-rc.d-8-add-openrc-handling.patch
Type: text/x-diff
Size: 2885 bytes
Desc: not available
URL: <http://www.chiark.greenend.org.uk/pipermail/debian-init-diversity/attachments/20261122/b5255161/attachment-0003.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-update-rc.d-fix-passing-on-of-force-option.patch
Type: text/x-diff
Size: 862 bytes
Desc: not available
URL: <http://www.chiark.greenend.org.uk/pipermail/debian-init-diversity/attachments/20261122/b5255161/attachment-0004.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Drop-unused-variables.patch
Type: text/x-diff
Size: 702 bytes
Desc: not available
URL: <http://www.chiark.greenend.org.uk/pipermail/debian-init-diversity/attachments/20261122/b5255161/attachment-0005.patch>


More information about the Debian-init-diversity mailing list