From 3ab3d701f8276cb12915b1af1ca0e329dde7a21c Mon Sep 17 00:00:00 2001 From: Yann Masson Date: Sat, 11 Nov 2017 18:16:52 +0100 Subject: [PATCH] ADD Devuan support Devuan is a Debian based distribution but without SystemD. --- bootstrap-salt.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bootstrap-salt.sh b/bootstrap-salt.sh index 938ebc5..9f240fc 100755 --- a/bootstrap-salt.sh +++ b/bootstrap-salt.sh @@ -1401,10 +1401,12 @@ __debian_derivatives_translation() { # If the file does not exist, return [ ! -f /etc/os-release ] && return - DEBIAN_DERIVATIVES="(cumulus_.+|kali|linuxmint|raspbian)" + DEBIAN_DERIVATIVES="(cumulus_.+|devuan|kali|linuxmint|raspbian)" # Mappings cumulus_2_debian_base="7.0" cumulus_3_debian_base="8.0" + devuan_1_debian_base="8.0" + devuan_2_debian_base="9.0" kali_1_debian_base="7.0" linuxmint_1_debian_base="8.0" raspbian_8_debian_base="8.0" @@ -1419,6 +1421,10 @@ __debian_derivatives_translation() { _major=$(echo "$DISTRO_VERSION" | sed 's/^\([0-9]*\).*/\1/g') _debian_derivative="cumulus" ;; + devuan) + _major=$(echo "$DISTRO_VERSION" | sed 's/^\([0-9]*\).*/\1/g') + _debian_derivative="devuan" + ;; kali) _major=$(echo "$DISTRO_VERSION" | sed 's/^\([0-9]*\).*/\1/g') _debian_derivative="kali"