-
Notifications
You must be signed in to change notification settings - Fork 2.6k
k3s-uninstall.sh: k3s-selinux package removal fails on Fedora CoreOS #13710
Copy link
Copy link
Open
Description
Environmental Info:
K3s Version:
k3s version v1.35.1+k3s1 (50fa2d7)
go version go1.25.6
Node(s) CPU architecture, OS, and Version:
Fedora CoreOS 43.20260217.2.2:
Linux M910Q 6.18.10-200.fc43.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 11 17:20:05 UTC 2026 x86_64 GNU/Linux
Cluster Configuration:
1 server
Describe the bug:
The k3s-uninstall.sh script fails to remove the k3s-selinux package on Fedora CoreOS 43.
Steps To Reproduce:
On Fedora CoreOS:
- Installed K3s:
curl -sfL https://get.k3s.io | INSTALL_K3S_CHANNEL=latest sh -s - - reboot node
- run uninstall script:
k3s-uninstall.sh
Expected behavior:
The k3s-selinux package should be removed using rpm-ostree.
Actual behavior:
The script calls yum (symlink to dnf), which fails because only rpm-ostree is allowed to make changes on CoreOS.
Additional context / logs:
$ k3s-uninstall.sh
# left out uninteresting output
+ rm -f /usr/local/bin/k3s
+ rm -f /usr/local/bin/k3s-killall.sh
+ type yum
+ yum remove -y k3s-selinux
Package Arch Version Repository Size
Removing:
k3s-selinux noarch 1.6-1.coreos <unknown> 94.9 KiB
Transaction Summary:
Removing: 1 package
After this operation, 95 KiB will be freed (install 0 B, remove 95 KiB).
Error: this bootc system is configured to be read-only. For more information, run `bootc --help`.
+ rm -f /etc/yum.repos.d/rancher-k3s-common.repo
+ remove_uninstall
+ rm -f /usr/local/bin/k3s-uninstall.shReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
To Triage