Add building support for Artix Linux
Artix Linux is systemd free distribution based on Arch Linux, with openrc dinit runit s6 as init alternatives. This patch will make init scripts installation work the way Gentoo Linux with openrc. The scripts tweaking for other init will be left to packager. Signed-off-by: Yongming Zhao <ming.zym@gmail.com>
This commit is contained in:
parent
c98295eed2
commit
c641204982
|
@ -516,6 +516,8 @@ AC_DEFUN([ZFS_AC_DEFAULT_PACKAGE], [
|
||||||
VENDOR=alpine ;
|
VENDOR=alpine ;
|
||||||
elif test -f /etc/arch-release ; then
|
elif test -f /etc/arch-release ; then
|
||||||
VENDOR=arch ;
|
VENDOR=arch ;
|
||||||
|
elif test -f /etc/artix-release ; then
|
||||||
|
VENDOR=artix ;
|
||||||
elif test -f /etc/fedora-release ; then
|
elif test -f /etc/fedora-release ; then
|
||||||
VENDOR=fedora ;
|
VENDOR=fedora ;
|
||||||
elif test -f /bin/freebsd-version ; then
|
elif test -f /bin/freebsd-version ; then
|
||||||
|
@ -551,7 +553,7 @@ AC_DEFUN([ZFS_AC_DEFAULT_PACKAGE], [
|
||||||
|
|
||||||
AC_MSG_CHECKING([default package type])
|
AC_MSG_CHECKING([default package type])
|
||||||
case "$VENDOR" in
|
case "$VENDOR" in
|
||||||
alpine|arch|gentoo|lunar|slackware)
|
alpine|arch|artix|gentoo|lunar|slackware)
|
||||||
DEFAULT_PACKAGE=tgz ;;
|
DEFAULT_PACKAGE=tgz ;;
|
||||||
debian|ubuntu)
|
debian|ubuntu)
|
||||||
DEFAULT_PACKAGE=deb ;;
|
DEFAULT_PACKAGE=deb ;;
|
||||||
|
@ -576,6 +578,8 @@ AC_DEFUN([ZFS_AC_DEFAULT_PACKAGE], [
|
||||||
case "$VENDOR" in
|
case "$VENDOR" in
|
||||||
alpine|gentoo) DEFAULT_INIT_SHELL=/sbin/openrc-run
|
alpine|gentoo) DEFAULT_INIT_SHELL=/sbin/openrc-run
|
||||||
IS_SYSV_RC=false ;;
|
IS_SYSV_RC=false ;;
|
||||||
|
artix) DEFAULT_INIT_SHELL=/usr/bin/openrc-run
|
||||||
|
IS_SYSV_RC=false ;;
|
||||||
*) DEFAULT_INIT_SHELL=/bin/sh
|
*) DEFAULT_INIT_SHELL=/bin/sh
|
||||||
IS_SYSV_RC=true ;;
|
IS_SYSV_RC=true ;;
|
||||||
esac
|
esac
|
||||||
|
@ -594,7 +598,7 @@ AC_DEFUN([ZFS_AC_DEFAULT_PACKAGE], [
|
||||||
|
|
||||||
AC_MSG_CHECKING([default init config directory])
|
AC_MSG_CHECKING([default init config directory])
|
||||||
case "$VENDOR" in
|
case "$VENDOR" in
|
||||||
alpine|gentoo)
|
alpine|artix|gentoo)
|
||||||
initconfdir=/etc/conf.d
|
initconfdir=/etc/conf.d
|
||||||
;;
|
;;
|
||||||
fedora|openeuler|redhat|sles|toss)
|
fedora|openeuler|redhat|sles|toss)
|
||||||
|
@ -623,7 +627,7 @@ AC_DEFUN([ZFS_AC_DEFAULT_PACKAGE], [
|
||||||
|
|
||||||
AC_MSG_CHECKING([default bash completion directory])
|
AC_MSG_CHECKING([default bash completion directory])
|
||||||
case "$VENDOR" in
|
case "$VENDOR" in
|
||||||
alpine|debian|gentoo|ubuntu)
|
alpine|artix|debian|gentoo|ubuntu)
|
||||||
bashcompletiondir=/usr/share/bash-completion/completions
|
bashcompletiondir=/usr/share/bash-completion/completions
|
||||||
;;
|
;;
|
||||||
freebsd)
|
freebsd)
|
||||||
|
|
Loading…
Reference in New Issue