-
Notifications
You must be signed in to change notification settings - Fork 326
ostree-finalize-staged.service: RequiresMountsFor=/etc #3514
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request adds /etc
and /var
to the RequiresMountsFor=
directive in the ostree-finalize-staged.service
systemd unit. This change correctly ensures that these filesystems remain mounted during shutdown while the staged deployment is being finalized, preventing a race condition where systemd might unmount them prematurely. The change is sound and addresses the issue described. I have no further recommendations.
I've seen in some cases systemd try to unmount /etc quite early and then fail because it's in use. It's confusing because I don't see this in all scenarios. But regardless, in the situations where it does occur, this fixes it. Signed-off-by: Colin Walters <walters@verbum.org>
0631f13
to
9617e5f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
We are |
Actually |
(disabling auto-merge I just want to check few more things) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do require /etc to copy the changed files anyway, so it documents the requirement, but this is not a full fix IMO, we still need local-fs.target to be after etc.mount
Huh...I actually don't see that So indeed, that seems like perhaps a root problem. |
I've seen in some cases systemd try to unmount /etc quite early and then fail because it's in use.
It's confusing because I don't see this in all scenarios. But regardless, in the situations where it does occur, this fixes it.