Skip to content
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

Clean /dev/, /run/, /sys/ #241

Merged
merged 4 commits into from
Aug 9, 2024
Merged

Clean /dev/, /run/, /sys/ #241

merged 4 commits into from
Aug 9, 2024

Conversation

upils
Copy link
Collaborator

@upils upils commented Aug 7, 2024

Some files (links, character devices, etc.) were left over in the /dev/ and were causing issues when booting or when the resulting chroot was moved around by Imagecraft (refusing to move named pipes). Also clean /run/and /sys/.

upils added 3 commits August 7, 2024 08:54
Some files (links, character devices, etc.) were left over in the /dev/ and were causing issues when booting or when the resulting chroot was moved around by Imagecraft (refusing to move named pipes).

Signed-off-by: Paul Mars <[email protected]>
Signed-off-by: Paul Mars <[email protected]>
Signed-off-by: Paul Mars <[email protected]>
@upils upils self-assigned this Aug 7, 2024
Copy link

codecov bot commented Aug 7, 2024

Codecov Report

Attention: Patch coverage is 77.77778% with 2 lines in your changes missing coverage. Please review.

Project coverage is 93.99%. Comparing base (3c96d61) to head (e223c49).

Files Patch % Lines
internal/testhelper/testhelper.go 60.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #241      +/-   ##
==========================================
- Coverage   94.12%   93.99%   -0.14%     
==========================================
  Files          18       18              
  Lines        3404     3412       +8     
==========================================
+ Hits         3204     3207       +3     
- Misses        127      132       +5     
  Partials       73       73              
Flag Coverage Δ
unittests 93.99% <77.77%> (-0.14%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tobhe
Copy link
Member

tobhe commented Aug 7, 2024

I think /sys might need the same treatment

@mwhudson
Copy link
Contributor

mwhudson commented Aug 7, 2024

I hope we're not dropping files in /sys!

@tobhe
Copy link
Member

tobhe commented Aug 7, 2024

No files, but:

$ find sys/
sys/
sys/kernel
sys/kernel/security
sys/fs
sys/fs/cgroup

After unpacking a freshly built tarball.

EDIT:

This also looks wrong

$ find run/
run/
run/mount
run/mount/utab
run/mount/utab.lock
run/lock

@mwhudson
Copy link
Contributor

mwhudson commented Aug 7, 2024

Sigh. Yes agree it would be good to clean those up!

@upils upils requested a review from sil2100 August 8, 2024 06:28
@upils
Copy link
Collaborator Author

upils commented Aug 8, 2024

I also spotted these dirs but was unsure it was safe to remove the directory structure under them. Let's clean them too then!

@upils upils changed the title Clean /dev/ Clean /dev/, /run/, /sys/ Aug 8, 2024
@upils upils merged commit 43771d1 into main Aug 9, 2024
11 of 15 checks passed
@upils upils deleted the clean-dev branch August 9, 2024 06:39
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.

3 participants