mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-26 23:38:31 +00:00
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:
parent
94e7b1da4f
commit
97c7e4b7bf
@ -9,7 +9,10 @@
|
|||||||
OS_VERSION=${OS_VERSION:-7}
|
OS_VERSION=${OS_VERSION:-7}
|
||||||
|
|
||||||
#Mandatory Packages that must be installed
|
#Mandatory Packages that must be installed
|
||||||
# systemd: An init system that will start kata-agent
|
|
||||||
# iptables: Need by Kata agent
|
# iptables: Need by Kata agent
|
||||||
# udevlib.so: Need by Kata agent
|
PACKAGES="iptables"
|
||||||
PACKAGES="systemd 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
|
||||||
|
@ -5,4 +5,5 @@
|
|||||||
|
|
||||||
#Use "latest" to always pull the last Clear Linux Release
|
#Use "latest" to always pull the last Clear Linux Release
|
||||||
OS_VERSION=${OS_VERSION:-latest}
|
OS_VERSION=${OS_VERSION:-latest}
|
||||||
PACKAGES="systemd iptables-bin libudev0-shim"
|
PACKAGES="iptables-bin libudev0-shim"
|
||||||
|
[ "$AGENT_INIT" == "no" ] && PACKAGES+=" systemd" || true
|
||||||
|
@ -9,7 +9,10 @@
|
|||||||
OS_VERSION=${OS_VERSION:-2.2}
|
OS_VERSION=${OS_VERSION:-2.2}
|
||||||
|
|
||||||
#Mandatory Packages that must be installed
|
#Mandatory Packages that must be installed
|
||||||
# systemd: An init system that will start kata-agent
|
|
||||||
# iptables: Need by Kata agent
|
# iptables: Need by Kata agent
|
||||||
# udevlib.so: Need by Kata agent
|
PACKAGES="iptables"
|
||||||
PACKAGES="systemd 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
|
||||||
|
@ -5,4 +5,5 @@
|
|||||||
|
|
||||||
#Fedora version to use
|
#Fedora version to use
|
||||||
OS_VERSION=${OS_VERSION:-27}
|
OS_VERSION=${OS_VERSION:-27}
|
||||||
PACKAGES="systemd iptables"
|
PACKAGES="iptables"
|
||||||
|
[ "$AGENT_INIT" == "no" ] && PACKAGES+=" systemd" || true
|
||||||
|
Loading…
Reference in New Issue
Block a user