-
Notifications
You must be signed in to change notification settings - Fork 63
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
FR-6365 - Improve mountpoints handling #178
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #178 +/- ##
===========================================
- Coverage 90.05% 79.50% -10.55%
===========================================
Files 13 13
Lines 3430 3504 +74
===========================================
- Hits 3089 2786 -303
- Misses 304 671 +367
- Partials 37 47 +10
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
This is probably fine. I think the commit message is a both a bit vague and a bit optimistic though? Something like "run udevadm settle before tearing down mount points after package installation to hopefully make it more reliable" or something would be better to me... |
Oh do not worry about the commit's messages for now, I am still investigating and will write proper commits when I have pinpointed the solution. |
The goal is to make sure there is nothing in our way before umounting.
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.
Looks good. The inline comments are non-important pokes.
Makes me actually think why we did bind-mount so many of the mountpoints to begin with. Must have been something I missed during reviews, since we don't even do that in livecd-rootfs. Anyway, this looks like the right way forward. Please proceed!
Oh, and don't forget to bump snapcraft.yaml! So that at least the edge snap gets a +snapX bump. |
Yes. I tend to do that just before merging because we already had several occasions where I needed to change it a few times because several other PR where merged just before merging the one I was working on. |
Error of the calling function is also kept and not discarded if some of the teardown command fail.
Notable changes in this PR:
udevadm settle
before tearing down mount points after package installation to hopefully make it more reliable/proc
and such./dev
mounting.Solves LP: #2049695