Remove corrupt deployment

Hi,

When trying to rebase to F34 on Silverblue I encountered an error because of rpmfusion packages, when trying to remove said packages i get the following:

Checking out tree 106416e... done
Resolving dependencies... done
Applying 1 override and 6 overlays
Processing packages... done
Running pre scripts... done
Running post scripts... done
Running posttrans scripts... done
Writing rpmdb... done
Writing OSTree commit... done
Staging deployment... done
error: Cleaning deployments: Removing ostree/deploy/fedora/deploy/f8d150dca32af60fbbc0a4d6c3ed0022e76cfbd1ea050aede1966cf0d7854e9c.0: unlinkat(41_custom): File exists

After this error the entire system becomes read-only and any following ostree or rpm-ostree command results in the following:

error: Remounting /sysroot read-write: Invalid argument

Rebooting the system makes it writable again until rpm-ostree is run again.


ostree fsck returns:

Validating refs...
Validating refs in collections...
Enumerating objects...
Verifying content integrity of 83 commit objects...
fsck objects (192915/192915) [=============] 100%

and ostree admin cleanup returns the same error as above:

error: Cleaning deployments: Removing ostree/deploy/fedora/deploy/f8d150dca32af60fbbc0a4d6c3ed0022e76cfbd1ea050aede1966cf0d7854e9c.0: unlinkat(41_custom): File exists

Any idea on how to resolve this problem?
Thanks!

1 Like

This might be an issue in ostree. Can you file an issue at Issues · ostreedev/ostree · GitHub? Thanks

Thanks for the response, I have filed an issue over at error: Cleaning deployments · Issue #2328 · ostreedev/ostree · GitHub