No automatic way to fix corrupted system files

Technically this should be an ostree related bug but I'll post it here first before doing a bug report

What I encountered was some system file corrupted, or at least I thought it was.
All system notification sounds just does not play anymore while audio from other applications play normally.

sudo ostree fsck

shows that there are corrupted files on the system.

unfortunately there are no way to automatically fix this.
I tried to use
sudo ostree fsck --delete
, as that seems to be the easiest way to fix this and I assumed rpm-ostree would just automatically pull the missing files.
It was a bad idea.

As seen from the screenshot, rpm-ostree really did not like it. Following a workaround from 2016 https://github.com/ostreedev/ostree/pull/345#issuecomment-262263824 also does not work.

I had an idea to pull the entire image by
rpm-ostree 
to try to fix it, but rpm-ostree complains that
Old and new refs are equal: ostree-unverified-registry:ghcr.io/ublue-os/bazzite:stable

To work around this, I am currently trying to rebase onto the nvidia image and then rebase back to the normal image.
image.png
GitHub
This is something I quickly hacked up, since I haven't seen any possibility to tell ostree to fetch the missing objects after doing ostree fsck --delete.
For now it only tries to download c...
Was this page helpful?