-
Notifications
You must be signed in to change notification settings - Fork 247
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
internal/exec: don't relabel a mountpoint that already exists #1608
Conversation
6ced547
to
133010a
Compare
b5448e7
to
6835430
Compare
Marking as ready for review as all tests are passing. |
97b3add
to
a37604d
Compare
5c31b98
to
65408e9
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.
Great first attempt!
A few changes, and I noticed that your commit message was a bit long, and might need a few more details
You will also need to rebase off of main to get your CI working due to #1621 |
Could we squash all these commits into one please? Sorry to keep bugging you about that, it makes review easier. I really do prefer following a process similar to this workflow. I know it takes some getting used to but it does help with the process and I have found that I enjoy it my self. |
bd7937d
to
de3f003
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.
Thanks for the PR. The release note is essentially correct (one small nit), but unfortunately the rest of the PR does something different than what the release note claims to do. And also, the PR doesn't appear to have been tested against the bug it's trying to fix. Details in comments below.
Blackbox tests have some runtime cost, and are mainly used to validate core functionality. This change is a small fix for a corner case; blackbox tests seem too expensive (and not trivial to set up in this case) and unit tests can't check this. I'd be inclined to recommend not adding tests for this one, and just manually testing that it fixes the bug.
You'll need to rebase to pick up CI changes. |
410f409
to
f0633a9
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.
Your commits don't appear to be independent changes, so please squash them.
0e23b48
to
a2552d2
Compare
Code LGTM. Please update the commit message to correctly describe the change (read-only filesystems aren't relevant here) and link to the issue. |
6e46d9a
to
a4cc298
Compare
When mounting filesystems, Ignition was relabeling the mountpoint directory even if it previously existed. This isn't necessary, and fails if the mountpoint is on a read-only filesystem, such as /usr/share/oem on Flatcar. Relabel the mountpoint only if we create it. Fixes: coreos#1452
a4cc298
to
9b73b92
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.
🎉
Fix: #1452