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

@ -9,7 +9,10 @@
OS_VERSION=${OS_VERSION:-7}
#Mandatory Packages that must be installed
# systemd: An init system that will start kata-agent
# iptables: Need by Kata agent
# udevlib.so: Need by Kata agent
PACKAGES="systemd iptables"
PACKAGES="iptables"
#Optional packages:
# systemd: An init system that will start kata-agent if kata-agent
# itself is not configured as init process.
[ "$AGENT_INIT" == "no" ] && PACKAGES+=" systemd" || true

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

View File

@ -9,7 +9,10 @@
OS_VERSION=${OS_VERSION:-2.2}
#Mandatory Packages that must be installed
# systemd: An init system that will start kata-agent
# iptables: Need by Kata agent
# udevlib.so: Need by Kata agent
PACKAGES="systemd iptables"
PACKAGES="iptables"
#Optional packages:
# systemd: An init system that will start kata-agent if kata-agent
# itself is not configured as init process.
[ "$AGENT_INIT" == "no" ] && PACKAGES+=" systemd" || true

View File

@ -5,4 +5,5 @@
#Fedora version to use
OS_VERSION=${OS_VERSION:-27}
PACKAGES="systemd iptables"
PACKAGES="iptables"
[ "$AGENT_INIT" == "no" ] && PACKAGES+=" systemd" || true