config.sh: do not install systemd if agent is init

When agent is used as init process, there is no need to install
systemd.

Signed-off-by: Peng Tao <bergwolf@gmail.com>
This commit is contained in:
Peng Tao
2018-01-30 17:16:54 +08:00
parent 94e7b1da4f
commit 97c7e4b7bf
4 changed files with 16 additions and 8 deletions

View File

@@ -5,4 +5,5 @@
#Use "latest" to always pull the last Clear Linux Release
OS_VERSION=${OS_VERSION:-latest}
PACKAGES="systemd iptables-bin libudev0-shim"
PACKAGES="iptables-bin libudev0-shim"
[ "$AGENT_INIT" == "no" ] && PACKAGES+=" systemd" || true