containers / bootc

Boot and upgrade via container images
https://containers.github.io/bootc/
Apache License 2.0
781 stars 84 forks source link

etc tombstone removal #834

Closed kfox1111 closed 1 month ago

kfox1111 commented 1 month ago

If new files show up in an image destined for /etc, they show up. If a user ever writes/overwrites a file, it gets moved to persisted state, so theirs always wins. So far so good.

If you delete the file from etc, its delete is persisted too. So, seems like there is a tombstone somewhere marking that state. I'd like to find and delete the tombstone so that it reverts back to using the file provided by the image. How do you do this?

cgwalters commented 1 month ago

cp /usr/etc/foo /etc/foo

kfox1111 commented 1 month ago

Oh, interesting.

kfox1111 commented 1 month ago

Would it make sense to add something to bootc to make that more discover-able?

bootc reset-etc /etc/foo

or something that wraps around that?

cgwalters commented 1 month ago

Yes, I think it's a sub-thread of https://github.com/containers/bootc/issues/404 so marking as a dup.