From 16e31e8eb854caf69b6417a020806f253197e578 Mon Sep 17 00:00:00 2001 From: Alexander Lutay Date: Wed, 27 Dec 2017 12:17:01 +0100 Subject: [PATCH] TT#29056 Add NGCP/GRML boot option ngcpinitsystem to choose the init system Change-Id: I26cabe70b758a1ddc366d86c4d6df7453e130aa0 --- deployment.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/deployment.sh b/deployment.sh index 3bcc8a9..3c19fe3 100644 --- a/deployment.sh +++ b/deployment.sh @@ -86,6 +86,7 @@ VLAN_SIP_EXT=1719 VLAN_SIP_INT=1720 VLAN_HA_INT=1721 VLAN_RTP_EXT=1722 +NGCP_INIT_SYSTEM="sysv" ### helper functions {{{ get_deploy_status() { @@ -681,6 +682,11 @@ fi if checkBootParam debootstrapkey ; then GPG_KEY=$(getBootParam debootstrapkey) fi + +if checkBootParam ngcpinitsystem ; then + NGCP_INIT_SYSTEM=$(getBootParam ngcpinitsystem) + logit "Using init system '${NGCP_INIT_SYSTEM}' as requested via boot option ngcpinitsystem" +fi ## }}} ## interactive mode {{{ @@ -778,6 +784,7 @@ for param in "$@" ; do *ngcpvlanrtpext*) VLAN_RTP_EXT="${param//ngcpvlanrtpext=/}";; *ngcpppainstaller*) NGCP_PPA_INSTALLER="${param//ngcpppainstaller=/}";; *ngcpppa*) NGCP_PPA="${param//ngcpppa=/}";; + *ngcpinitsystem*) NGCP_INIT_SYSTEM="${param//ngcpinitsystem=/}";; esac shift done @@ -1724,6 +1731,7 @@ SIPWISE_REPO_TRANSPORT="${SIPWISE_REPO_TRANSPORT}" NAMESERVER="$(awk '/^nameserver/ {print $2}' /etc/resolv.conf)" NGCP_PPA="${NGCP_PPA}" DEBUG_MODE="${DEBUG_MODE}" +NGCP_INIT_SYSTEM="${NGCP_INIT_SYSTEM}" EOF cat "${TARGET}/etc/ngcp-installer/config_deploy.inc" > /tmp/ngcp-installer-cmdline.log