diff options
author | Benda Xu <[email protected]> | 2024-04-09 07:52:24 +0800 |
---|---|---|
committer | GitHub <[email protected]> | 2024-04-08 16:52:24 -0700 |
commit | 162cc80b8144698b44b5b168dc1853341277de10 (patch) | |
tree | cc09cef77f61defb772642d3ddb9300ef3dee5a5 /config/Substfiles.am | |
parent | f07389d3ad48ba21480dedcd79b75fe0a31e27bc (diff) |
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 <[email protected]>
Signed-off-by: Benda Xu <[email protected]>
Issue #8063
Issue #8204
Issue #8359
Closes #15977
Diffstat (limited to 'config/Substfiles.am')
-rw-r--r-- | config/Substfiles.am | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/config/Substfiles.am b/config/Substfiles.am index 38e870b2f..18422bf64 100644 --- a/config/Substfiles.am +++ b/config/Substfiles.am @@ -18,6 +18,7 @@ subst_sed_cmd = \ -e 's|@ASAN_ENABLED[@]|$(ASAN_ENABLED)|g' \ -e 's|@DEFAULT_INIT_NFS_SERVER[@]|$(DEFAULT_INIT_NFS_SERVER)|g' \ -e 's|@DEFAULT_INIT_SHELL[@]|$(DEFAULT_INIT_SHELL)|g' \ + -e 's|@IS_SYSV_RC[@]|$(IS_SYSV_RC)|g' \ -e 's|@LIBFETCH_DYNAMIC[@]|$(LIBFETCH_DYNAMIC)|g' \ -e 's|@LIBFETCH_SONAME[@]|$(LIBFETCH_SONAME)|g' \ -e 's|@PYTHON[@]|$(PYTHON)|g' \ |