Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
84155ee3
Commit
84155ee3
authored
Aug 26, 2021
by
Brad Davidson
Committed by
Brad Davidson
Aug 27, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make consistent use of os-release vars
Signed-off-by:
Brad Davidson
<
brad.davidson@rancher.com
>
parent
2a68c7c8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
install.sh
install.sh
+6
-6
No files found.
install.sh
View file @
84155ee3
...
@@ -460,19 +460,19 @@ setup_selinux() {
...
@@ -460,19 +460,19 @@ setup_selinux() {
fi
fi
[
-r
/etc/os-release
]
&&
.
/etc/os-release
[
-r
/etc/os-release
]
&&
.
/etc/os-release
if
[
"
${
ID_LIKE
:-}
"
=
suse
]
;
then
if
[
"
${
ID_LIKE
:-}
"
=
suse
]
;
then
policy_hint
=
'
k3s with SELinux is currently not supported on SUSE/openSUSE systems.
policy_hint
=
"
k3s with SELinux is currently not supported on SUSE/openSUSE systems.
please disable SELinux before installing k3s
Please disable SELinux before installing k3s.
'
"
else
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/
${
VERSION_ID
:-
7
}
/noarch/k3s-selinux-0.3-0.el
${
VERSION_ID
:-
7
}
.noarch.rpm
"
"
fi
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
]
||
[
"
${
ID_LIKE
:-}
"
=
coreos
]
;
then
policy_error
=
warn
policy_error
=
warn
fi
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment