feat(install): replace rpm by yum for setup_selinux (#1829)

It's a bad practice to install packages via rpm directly. It's better to install all packages with Yum/Dnf. It's also possible to install packages directly via an URL, which is the purpose of this PR.
pull/2318/head
Kevin Messer 4 years ago committed by GitHub
parent 86d2e2a5f8
commit 6c9f3d528a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -431,7 +431,7 @@ setup_binary() {
setup_selinux() {
policy_hint="please install:
yum install -y container-selinux selinux-policy-base
rpm -i https://rpm.rancher.io/k3s-selinux-0.1.1-rc1.el7.noarch.rpm
yum install -y https://rpm.rancher.io/k3s-selinux-0.1.1-rc1.el7.noarch.rpm
"
policy_error=fatal
if [ "$INSTALL_K3S_SELINUX_WARN" = true ]; then

Loading…
Cancel
Save