-
Notifications
You must be signed in to change notification settings - Fork 159
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
ignition-ostree: make sure we don't mount /sysroot before transposefs #2526
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,11 @@ After=ignition-disks.service | |
After=ignition-ostree-uuid-root.service | ||
After=ignition-ostree-growfs.service | ||
Before=ignition-ostree-mount-firstboot-sysroot.service | ||
# https://issues.redhat.com/browse/OCPBUGS-16157 | ||
# On multipath systems mounting the /sysroot before | ||
# the ignition-ostree services causes the transpose to fai. | ||
Before=initrd-root-fs.target | ||
Before=sysroot.mount | ||
Comment on lines
+12
to
+13
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is 100% fine, but I'd note that normally Or maybe the simple way to say it is: anywhere we have |
||
OnFailure=emergency.target | ||
OnFailureJobMode=isolate | ||
|
||
|
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.
OK now that I look I think I'm starting to understand this better. Before this PR, we only had
Before=ignition-ostree-transposefs-restore.service
on this service, which is itself justBefore=ignition-ostree-mount-firstboot-sysroot.service
.Yet that service is just a no-op if we have a
root
kernel argument.So there were no constraints and we just end up racing.
So the multipath bits exposed this core race condition because it is done via a
root=
karg.