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

Include elemental partitions in mount command #1918

Merged
merged 2 commits into from
Jan 29, 2024

Conversation

davidcassany
Copy link
Contributor

@davidcassany davidcassany commented Jan 25, 2024

This PR essentially adds an additional step in mount command to mount elemental partitions before hand (OEM, Persistent, EFI, etc.). Elemental partitions should already mounted and prepare at initramfs stage and even before the persistent paths are set (otherwise instead of being defined in a persistent area they are on /run's tmpfs).

Signed-off-by: David Cassany <dcassany@suse.com>
@davidcassany davidcassany requested a review from a team as a code owner January 25, 2024 15:18
@davidcassany davidcassany marked this pull request as draft January 25, 2024 15:18
@codecov-commenter
Copy link

codecov-commenter commented Jan 25, 2024

Codecov Report

Attention: 42 lines in your changes are missing coverage. Please review.

Comparison is base (324583f) 73.83% compared to head (6ae5596) 73.91%.

Files Patch % Lines
pkg/action/mount.go 60.46% 17 Missing ⚠️
pkg/config/config.go 54.54% 10 Missing and 5 partials ⚠️
pkg/elemental/elemental.go 75.00% 4 Missing and 2 partials ⚠️
cmd/config/config.go 33.33% 3 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1918      +/-   ##
==========================================
+ Coverage   73.83%   73.91%   +0.07%     
==========================================
  Files          71       71              
  Lines        7759     7762       +3     
==========================================
+ Hits         5729     5737       +8     
+ Misses       1611     1600      -11     
- Partials      419      425       +6     

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

@davidcassany davidcassany force-pushed the mount_elemental_partitions branch 2 times, most recently from f1324c3 to 452a05c Compare January 25, 2024 21:52
Signed-off-by: David Cassany <dcassany@suse.com>
@davidcassany davidcassany marked this pull request as ready for review January 29, 2024 06:26
@@ -4,6 +4,8 @@ DefaultDependencies=no
After=initrd-root-fs.target
Requires=initrd-root-fs.target
Before=initrd-fs.target
ConditionKernelCommandLine=!rd.cos.disable
ConditionKernelCommandLine=!elemental.disable
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

on my tests, not sure why, but once got this service running and failing for live ISO, not sure why 🤷🏽‍♂️ In any case this doesn't hurt.

@davidcassany
Copy link
Contributor Author

Confirmation run done at https://github.com/rancher/elemental/actions/runs/7691982270/job/20958173282

@davidcassany davidcassany merged commit 22c7e8a into rancher:main Jan 29, 2024
14 checks passed
@davidcassany davidcassany deleted the mount_elemental_partitions branch January 29, 2024 07:27
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.

None yet

3 participants