I had major and hard to identify problems with logging in, so I disabled SElinux but the wrong way, so I deleted all the configs, thinking an update would restore them.
They are stored in /etc/ so they seem not to be part of the overwrite-part of the OSTree image.
In DNF for problems like that, also for grub problems, you could reinstall the packages simply. This is not a possibility in rpm-ostree.
How can I reset these settings?
- This command does not work
# rpm-ostree override remove selinux-policy --install selinux-policy
error: "selinux-policy" is already provided by: selinux-policy-37.19-1.fc37.noarch. Use --allow-inactive to explicitly require it.
# rpm-ostree override remove selinux-policy --install --allow-inactive selinux-policy
error: Override already exists for package 'selinux-policy'
- This is difficult as SELinux is a dependency for other apps like smartmontools-selinux, so you would have to replace all of these, which is similarly extreme like the “replace libavcodec with full ffmpeg” rpm-ostree override.
rpm-ostree override remove selinux-policy && rpm-ostree install selinux-policy
- I try
rpm-ostree install --allow-inactive selinux-policy` and it seems to work. Lets see
And this works! This is how you reinstall an app including its settings!
Now I just have to find the correct app restoring what I need.