]> git.proxmox.com Git - mirror_zfs.git/commit
etc/init.d: decide which variant to use at build time. master
authorBenda Xu <heroxbd@gmail.com>
Mon, 8 Apr 2024 23:52:24 +0000 (07:52 +0800)
committerGitHub <noreply@github.com>
Mon, 8 Apr 2024 23:52:24 +0000 (16:52 -0700)
commit162cc80b8144698b44b5b168dc1853341277de10
treecc09cef77f61defb772642d3ddb9300ef3dee5a5
parentf07389d3ad48ba21480dedcd79b75fe0a31e27bc
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
config/Substfiles.am
config/zfs-build.m4
etc/init.d/README.md
etc/init.d/zfs-import.in
etc/init.d/zfs-load-key.in
etc/init.d/zfs-mount.in
etc/init.d/zfs-share.in
etc/init.d/zfs-zed.in