mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 01:51:00 +03:00
Set DEFAULT_INIT_SHELL to /sbin/openrc-run for Gentoo and Alpine
Gentoo and Alpine always set the rc init scripts' shebang to #!/sbin/openrc-run, whether or not openrc is installed. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Peter Levine <plevine457@gmail.com> Closes #12683 Closes #12692
This commit is contained in:
parent
4d4998ea39
commit
6ef28c526b
@ -564,15 +564,11 @@ AC_DEFUN([ZFS_AC_DEFAULT_PACKAGE], [
|
|||||||
*) DEFAULT_INIT_SCRIPT=lsb ;;
|
*) DEFAULT_INIT_SCRIPT=lsb ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# On gentoo, it's possible that OpenRC isn't installed. Check if
|
case "$VENDOR" in
|
||||||
# /sbin/openrc-run exists, and if not, fall back to generic defaults.
|
gentoo) DEFAULT_INIT_SHELL="/sbin/openrc-run";;
|
||||||
|
alpine) DEFAULT_INIT_SHELL="/sbin/openrc-run";;
|
||||||
DEFAULT_INIT_SHELL="/bin/sh"
|
*) DEFAULT_INIT_SHELL="/bin/sh" ;;
|
||||||
AS_IF([test "$DEFAULT_INIT_SCRIPT" = "openrc"], [
|
esac
|
||||||
AS_IF([test -x "/sbin/openrc-run"],
|
|
||||||
[DEFAULT_INIT_SHELL="/sbin/openrc-run"],
|
|
||||||
[DEFAULT_INIT_SCRIPT=lsb])
|
|
||||||
])
|
|
||||||
|
|
||||||
AC_MSG_RESULT([$DEFAULT_INIT_SCRIPT:$DEFAULT_INIT_SHELL])
|
AC_MSG_RESULT([$DEFAULT_INIT_SCRIPT:$DEFAULT_INIT_SHELL])
|
||||||
AC_SUBST(DEFAULT_INIT_SCRIPT)
|
AC_SUBST(DEFAULT_INIT_SCRIPT)
|
||||||
|
Loading…
Reference in New Issue
Block a user