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
GitHub <noreply@github.com>Committed on Apr 8 2024, 11:52 PM
Parents
rGf07389d3ad48: Fix locale-specific time
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG162cc80b8144: etc/init.d: decide which variant to use at build time. (authored by Benda Xu <heroxbd@gmail.com>).Apr 8 2024, 11:52 PM