diff --git a/deploy/install.go b/deploy/install.go index 5294072e..1ed8169e 100644 --- a/deploy/install.go +++ b/deploy/install.go @@ -85,6 +85,7 @@ const ( RancherK3sKubeConfigPath = "/etc/rancher/k3s/k3s.yaml" EnvK3sInstallSkipDownload = "INSTALL_K3S_SKIP_DOWNLOAD=true" EnvK3sForceRestart = "INSTALL_K3S_FORCE_RESTART=true" + EnvK3sSkipSelinuxRpm = "INSTALL_K3S_SKIP_SELINUX_RPM=true" ) const ( @@ -736,7 +737,7 @@ func (dp *DeployProcess) ExecuteK3sInstallScript() { } cmd := execCommand(filepath.Join(dp.tmpDir, k3SInstallScript)) - cmd.Env = append(os.Environ(), EnvK3sInstallSkipDownload, EnvK3sForceRestart) + cmd.Env = append(os.Environ(), EnvK3sInstallSkipDownload, EnvK3sForceRestart, EnvK3sSkipSelinuxRpm) cmd.Stdout = logFile cmd.Stderr = logFile err = cmd.Run()