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

generator: Exit if there's no /run/ostree #3147

Merged
merged 1 commit into from
Jan 27, 2024

Conversation

cgwalters
Copy link
Member

Currently if run in a container image under systemd, we will incorrectly synthesize a var.mount unit even if ostree-prepare-root hasn't run.

The comment here said why we didn't do that before, but that's for the really legacy embedded-only "ostree-prepare-root-static" path, and even then I'm pretty sure it was wrong because the generator here only runs in the real root, and we should have /run/ostree at that point.

Currently if run in a container image under systemd, we will
incorrectly synthesize a `var.mount` unit even if `ostree-prepare-root`
hasn't run.

The comment here said why we didn't do that before, but that's
for the really legacy embedded-only "ostree-prepare-root-static"
path, and even then I'm pretty sure it was wrong because
the generator here only runs in the *real* root, and we should
have `/run/ostree` at that point.
@cgwalters cgwalters merged commit 47213b5 into ostreedev:main Jan 27, 2024
24 checks passed
@jlebon
Copy link
Member

jlebon commented Feb 6, 2024

Follow-up on this in #3158.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants