Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix booted deploy detection with transient /etc #3163

Conversation

alexlarsson
Copy link
Member

@alexlarsson alexlarsson commented Feb 8, 2024

When /etc is transient, and composefs is root, there is currently no bind-mount of the deploy directory so the checks for finding if a deploy is booted are failing.

We fix this by bind-mounting the deploy dir as /run/ostree/deploy and use that to look for the booted deploy directory.

This fixes: #3161

When /etc is transient, and composefs is root, there is currently no
bind-mount of the deploy directory so the checks for finding if a
deploy is booted are failing.

We fix this by bind-mounting the deploy dir as /run/ostree/deploy and
use that to look for the booted deploy directory.
@github-actions github-actions bot added the area/prepare-root Issue relates to ostree-prepare-root label Feb 8, 2024
@alexlarsson alexlarsson requested a review from cgwalters February 8, 2024 14:04
@alexlarsson alexlarsson mentioned this pull request Feb 8, 2024
@cgwalters
Copy link
Member

I'm OK with this probably as is, but WDYT about just injecting the device/inode pair into the /run/ostree-booted metadata file? That file being non-empty is a relatively new thing but I think it just makes sense to read it instead of trying to re-infer the state of what was set up in ostree-prepare-root (or adding another bind mount just so we can stat it).

@alexlarsson
Copy link
Member Author

That would work to, lemme try it out and see how it ends up-

@cgwalters
Copy link
Member

I took a quick stab at this in #3164 - testing now

@alexlarsson
Copy link
Member Author

Given the weird error in the CI here i prefer the #3164 approach

@alexlarsson alexlarsson closed this Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/prepare-root Issue relates to ostree-prepare-root
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Transient /etc breaks finding current booted deployment
2 participants