Closed jbirch closed 7 months ago
Can you try resetting you SELinux policy as well? https://docs.fedoraproject.org/en-US/fedora-silverblue/troubleshooting/#_selinux_problems
Oh, fantastic lead. I indeed have some modifications!
$ sudo ostree admin config-diff | grep policy
[sudo] password for jbirch:
M selinux/targeted/.policy.sha512
M selinux/targeted/active/policy.linked
M selinux/targeted/active/policy.kern
M selinux/targeted/policy/policy.33
Following along with the instructions results in:
$ sudo ostree admin config-diff | grep policy
A selinux.bak/targeted/.policy.sha512
A selinux.bak/targeted/policy
A selinux.bak/targeted/policy/policy.33
A selinux.bak/targeted/active/policy.linked
A selinux.bak/targeted/active/policy.kern
A selinux.bak/targeted/active/modules/100/policykit
A selinux.bak/targeted/active/modules/100/policykit/cil
A selinux.bak/targeted/active/modules/100/policykit/hll
A selinux.bak/targeted/active/modules/100/policykit/lang_ext
(IE, a bunch of things were backed up, but the actual SELinux policy aligns with what's in the tree)
I'll move these off-tree and report back about the status of an upgrade.
This was enough to upgrade to Fedora 40. I'll keep the config-diff
in my back pocket for the future; it was definitely the missing piece I needed to identify the issue.
I don't recall what I could have possible done to modify SELinux definitions, but given that I've not been able to find anyone else on the internet yet who has run into the same thing, I'm willing to admit it was probably my own fault. I appreciate your help getting this resolved — there's probably nothing further to do here. Thanks again!
There was a bug at some point that made the policy "local" for some systems so you might have hit it.
Glad it got resolved.
Describe the bug On my current machine, I am unable to rebase from
fedora/39/x86_64/silverblue
tofedora/40/x86_64/silverblue
, regardless of layered packages or not. The rebase command completes successfully, but the finalise process fails due to an SELinux redefinition error:This happens from both deployments here — that is, it happens even with an
rpm-ostree reset
(The ostree-finalize-staged output above is from the reset deployment):To Reproduce On my local machine, after ensuring a reboot:
sudo rpm-ostree rebase -b fedora/40/x86_64/silverblue
— apparently successfulsystemctl reboot
— apparently successful/etc/*release*
andrpm-ostree status
However, I was unable to reproduce this on two fresh virtual machines — one with no layered packages and one with my chosen layered packages. The above steps successfully upgraded the virtual machines to Fedora 40
Expected behavior After a successful rebase command and successful reboot, I expect to be in Fedora 40.
OS version:
Additional context It's not immediately clear to me where the duplicated definitions are coming from, as the
/etc/selinux/targeted/tmp/
directory doesn't persist long enough for me to understand where it's finding its magic. This system started as a Silverblue 38 machine, and rebased to 39 without incident.