mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
install.sh: Inform user of current k3s+SELinux support status for SUSE/openSUSE systems
Signed-off-by: Richard Brown <rbrownccb@opensuse.org>
This commit is contained in:
parent
331c6fed71
commit
51b7451709
|
@ -459,10 +459,18 @@ setup_selinux() {
|
||||||
rpm_site="rpm-testing.rancher.io"
|
rpm_site="rpm-testing.rancher.io"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
. /etc/os-release
|
||||||
|
if [ "${ID_LIKE:-}" = suse ] ; then
|
||||||
|
policy_hint='k3s with SELinux is currently not supported on SUSE/openSUSE systems.
|
||||||
|
please disable SELinux before installing k3s
|
||||||
|
'
|
||||||
|
else
|
||||||
policy_hint="please install:
|
policy_hint="please install:
|
||||||
yum install -y container-selinux selinux-policy-base
|
yum install -y container-selinux selinux-policy-base
|
||||||
yum install -y https://${rpm_site}/k3s/${rpm_channel}/common/centos/7/noarch/k3s-selinux-0.2-1.el7_8.noarch.rpm
|
yum install -y https://${rpm_site}/k3s/${rpm_channel}/common/centos/7/noarch/k3s-selinux-0.2-1.el7_8.noarch.rpm
|
||||||
"
|
"
|
||||||
|
fi
|
||||||
|
|
||||||
policy_error=fatal
|
policy_error=fatal
|
||||||
if [ "$INSTALL_K3S_SELINUX_WARN" = true ] || grep -q 'ID=flatcar' /etc/os-release; then
|
if [ "$INSTALL_K3S_SELINUX_WARN" = true ] || grep -q 'ID=flatcar' /etc/os-release; then
|
||||||
policy_error=warn
|
policy_error=warn
|
||||||
|
|
Loading…
Reference in New Issue
Block a user