HomeFreeBSD

etc/init.d: decide which variant to use at build time.

Description

etc/init.d: decide which variant to use at build time.

Let Debian use the sysv-rc variant of the script, even when OpenRC is
installed. Unlike on Gentoo, OpenRC on Debian consumes both the
sysv-rc scripts and OpenRC ones. ZFS initscripts on Debian should be
the sysv-rc version to provide most compatibility and to integrate
with the rest of initscripts for dependency tracking.

Restrict the substitution in the Makefile to the dedicated list.

This construct is inspired by Mo Zhou's detection of the execution
shell and follows the strategy of Peter in 6ef28c526ba7.

As of 2024, the initscripts are mostly relevant on Debian, Gentoo and
their derivatives.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Benda Xu <orv@debian.org>
Issue #8063
Issue #8204
Issue #8359
Closes #15977

Details

Provenance
Benda Xu <heroxbd@gmail.com>Authored on Apr 8 2024, 11:52 PM
Tony Hutter <hutter2@llnl.gov>Committed on Apr 22 2024, 4:28 PM
Parents
rGbaaac3165542: config/Substfiles.am: restrict to the dedicated list.
Branches
Unknown
Tags
Unknown

Event Timeline

Tony Hutter <hutter2@llnl.gov> committed rG6732e223bf70: etc/init.d: decide which variant to use at build time. (authored by Benda Xu <heroxbd@gmail.com>).Apr 22 2024, 4:28 PM