Skip to content

Conversation

smoser
Copy link
Contributor

@smoser smoser commented Mar 2, 2023

This protection was present in one of the callers of squashFuse, but not in another. The change here just to put them inside squashFuse.

Fixes #428.

What type of PR is this?

Which issue does this PR fix:

What does this PR do / Why do we need it:

If an issue # is not available please add repro steps and logs showing the issue:

Testing done on this change:

Automation added to e2e:

Will this break upgrades or downgrades?

Does this PR introduce any user-facing change?:


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@smoser smoser requested review from rchincha and hallyn as code owners March 2, 2023 20:44
@smoser smoser force-pushed the fix/no-race-in-squashfuse-mount branch 2 times, most recently from 71d38db to c12d328 Compare March 2, 2023 21:04
@codecov
Copy link

codecov bot commented Mar 2, 2023

Codecov Report

Merging #431 (c546498) into main (e31c1c3) will decrease coverage by 0.05%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main     #431      +/-   ##
==========================================
- Coverage   12.12%   12.08%   -0.05%     
==========================================
  Files          44       44              
  Lines        5433     5451      +18     
==========================================
  Hits          659      659              
- Misses       4657     4675      +18     
  Partials      117      117              
Impacted Files Coverage Δ
pkg/squashfs/squashfs.go 15.32% <0.00%> (-2.07%) ⬇️
pkg/squashfs/verity.go 21.27% <0.00%> (+0.80%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@hallyn hallyn self-requested a review March 3, 2023 04:22
@hallyn
Copy link
Contributor

hallyn commented Mar 3, 2023

Why was test ' @github-actions ci / build / golang 1.20.x privilege unpriv (pull_request' skipped?

@smoser
Copy link
Contributor Author

smoser commented Mar 5, 2023

part of the build (test) timed out https://github.com/project-stacker/stacker/actions/runs/4318221259/jobs/7554679260
Is this new?

@smoser smoser force-pushed the fix/no-race-in-squashfuse-mount branch 11 times, most recently from 1cbf125 to 2998625 Compare March 7, 2023 01:08
smoser added 2 commits March 6, 2023 21:01
squashfuse from Ubuntu 22.04 is linked to fuse2 and has some bugs
compared to one that is linked against fuse3.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1025706
Signed-off-by: Scott Moser <smoser@brickies.net>
This protection was present in one of the callers of
squashFuse, but not in another.  The change here just to
put them inside squashFuse.

Fixes project-stacker#428.

Signed-off-by: Scott Moser <smoser@brickies.net>
@smoser smoser force-pushed the fix/no-race-in-squashfuse-mount branch from 2998625 to c546498 Compare March 7, 2023 02:01
@smoser smoser merged commit bf773e5 into project-stacker:main Mar 7, 2023
smoser pushed a commit to project-machine/bootkit that referenced this pull request Mar 10, 2023
This is to work around a bug in stacker.
project-stacker/stacker#431

Until that is fixed, we are getting errors during build
where the 'run' section tries to use 'pkgtool' before that
layer has been populated.
smoser pushed a commit to project-machine/bootkit that referenced this pull request Mar 10, 2023
This is to work around a bug in stacker.
project-stacker/stacker#431

Until that is fixed, we are getting errors during build
where the 'run' section tries to use 'pkgtool' before that
layer has been populated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: race condition in squashfuse mount path - command not found
2 participants