Reset /etc settings with the latest defaults

Hello,

With Fedora 42 coming up I was curious about all the changes. I ran a ujust check-local-overrides and found out a certain number of things had changed, but I would rather just have the recommended setup.

I thought the files in /etc where there just in case I changed something and started removing the changes I did not like anymore. However, it seems I removed a bit too much and next boot I had to revert to the previous booted state and the one i “cleaned” would no longer boot.

I could not just rebase to the same version as the one I had either.

So I guess my question is: how to restart fresh / to get rid of all local overrides ?

@pyrignis I wrote an article on this topic in early March because I shared your concern.

Important snippet

You can use ostree admin config-diff to see the differences between your booted deployment’s /etc and the OSTree defaults. A command like diff {/usr,}/etc will additional print line-level differences.

The article …

1 Like