-
Notifications
You must be signed in to change notification settings - Fork 98
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 custom binds set as RW_PATHS #944
Conversation
RW_PATHS are meant for overlay dirs which go away after a reboot. Custom binds/binds are mounted under COS_PERSISTENT, so they persist after reboot AND are RW by default. This patch removes adding the custom binds into the RW_PATHS on the cos-layout file as that can lead to unintended consequences Signed-off-by: Itxaka <[email protected]>
✅ Deploy Preview for kairos-io canceled.
|
Signed-off-by: Itxaka <[email protected]>
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
This also sets the defaults for recovery to be sure that we have a proper cos-layout file AND prevents the custom layout for running on anything that its not active/passive |
Umm this still doesnt fix the bind mounts being set properly |
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## master #944 +/- ##
=======================================
Coverage 22.79% 22.79%
=======================================
Files 22 22
Lines 1610 1610
=======================================
Hits 367 367
Misses 1179 1179
Partials 64 64 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Signed-off-by: Itxaka <[email protected]>
Signed-off-by: Itxaka <[email protected]>
Signed-off-by: Itxaka <[email protected]>
RW_PATHS are meant for overlay dirs which go away after a reboot. Custom binds/binds are mounted under COS_PERSISTENT, so they persist after reboot AND are RW by default.
This patch adds custom binds into the PERSISTENT_STATE_PATHS and ephemeral into RW_PATHS
Also stops adding custom values into the cos-layout.env file as they are not needed
Also removes the existing keys to re-add them with the new merged values, otherwise we could have duplicated keys, which should not matter as the last one wins, but still its ugly and could cause problems in the future.
What this PR does / why we need it:
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #