mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
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.
This commit is contained in:
parent
86d2e2a5f8
commit
6c9f3d528a
@ -431,7 +431,7 @@ setup_binary() {
|
|||||||
setup_selinux() {
|
setup_selinux() {
|
||||||
policy_hint="please install:
|
policy_hint="please install:
|
||||||
yum install -y container-selinux selinux-policy-base
|
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
|
policy_error=fatal
|
||||||
if [ "$INSTALL_K3S_SELINUX_WARN" = true ]; then
|
if [ "$INSTALL_K3S_SELINUX_WARN" = true ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user