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
8ff7d162
Commit
8ff7d162
authored
Aug 06, 2024
by
Derek Nola
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow fedora iot rpm installs
Signed-off-by:
Derek Nola
<
derek.nola@suse.com
>
Co-Authored-By:
Blayne Campbell
<
5565939+bcambl@users.noreply.github.com
>
parent
45c04f35
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
install.sh
install.sh
+4
-3
install.sh.sha256sum
install.sh.sha256sum
+1
-1
No files found.
install.sh
View file @
8ff7d162
...
@@ -579,7 +579,7 @@ setup_selinux() {
...
@@ -579,7 +579,7 @@ setup_selinux() {
rpm_site_infix
=
slemicro
rpm_site_infix
=
slemicro
package_installer
=
zypper
package_installer
=
zypper
fi
fi
elif
[
"
${
ID_LIKE
:-}
"
=
coreos
]
||
[
"
${
VARIANT_ID
:-}
"
=
coreos
]
;
then
elif
[
"
${
ID_LIKE
:-}
"
=
coreos
]
||
[
"
${
VARIANT_ID
:-}
"
=
coreos
]
||
[
"
${
VARIANT_ID
:-}
"
=
"iot"
]
;
then
rpm_target
=
coreos
rpm_target
=
coreos
rpm_site_infix
=
coreos
rpm_site_infix
=
coreos
package_installer
=
rpm-ostree
package_installer
=
rpm-ostree
...
@@ -619,7 +619,8 @@ setup_selinux() {
...
@@ -619,7 +619,8 @@ setup_selinux() {
install_selinux_rpm
${
rpm_site
}
${
rpm_channel
}
${
rpm_target
}
${
rpm_site_infix
}
install_selinux_rpm
${
rpm_site
}
${
rpm_channel
}
${
rpm_target
}
${
rpm_site_infix
}
policy_error
=
fatal
policy_error
=
fatal
if
[
"
$INSTALL_K3S_SELINUX_WARN
"
=
true
]
||
[
"
${
ID_LIKE
:-}
"
=
coreos
]
||
[
"
${
VARIANT_ID
:-}
"
=
coreos
]
;
then
if
[
"
$INSTALL_K3S_SELINUX_WARN
"
=
true
]
||
[
"
${
ID_LIKE
:-}
"
=
coreos
]
||
[
"
${
VARIANT_ID
:-}
"
=
coreos
]
||
[
"
${
VARIANT_ID
:-}
"
=
iot
]
;
then
policy_error
=
warn
policy_error
=
warn
fi
fi
...
@@ -628,7 +629,7 @@ setup_selinux() {
...
@@ -628,7 +629,7 @@ setup_selinux() {
$policy_error
"Failed to apply container_runtime_exec_t to
${
BIN_DIR
}
/k3s,
${
policy_hint
}
"
$policy_error
"Failed to apply container_runtime_exec_t to
${
BIN_DIR
}
/k3s,
${
policy_hint
}
"
fi
fi
elif
[
!
-f
/usr/share/selinux/packages/k3s.pp
]
;
then
elif
[
!
-f
/usr/share/selinux/packages/k3s.pp
]
;
then
if
[
-x
/usr/sbin/transactional-update
]
||
[
"
${
ID_LIKE
:-}
"
=
coreos
]
||
[
"
${
VARIANT_ID
:-}
"
=
coreos
]
;
then
if
[
-x
/usr/sbin/transactional-update
]
||
[
"
${
ID_LIKE
:-}
"
=
coreos
]
||
[
"
${
VARIANT_ID
:-}
"
=
coreos
]
||
[
"
${
VARIANT_ID
:-}
"
=
iot
]
;
then
warn
"Please reboot your machine to activate the changes and avoid data loss."
warn
"Please reboot your machine to activate the changes and avoid data loss."
else
else
$policy_error
"Failed to find the k3s-selinux policy,
${
policy_hint
}
"
$policy_error
"Failed to find the k3s-selinux policy,
${
policy_hint
}
"
...
...
install.sh.sha256sum
View file @
8ff7d162
678e37945882e520533561514c3c1348efd298a3695cd9639934dade96d23c74
install.sh
cc3c773e19d62e318370b01a8e1f166ed7368e6c493fe3ef21c9327052cb3422
install.sh
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