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

Fix partitioner not identifying mmc/nvme partitions #563

Merged
merged 2 commits into from
Sep 27, 2024

Conversation

Itxaka
Copy link
Member

@Itxaka Itxaka commented Sep 26, 2024

We were expecting them to follow us the device name + numer at the end but mmc and nvme partitions follow a different schema.

In order to make this work for anything and even new schemas that we may not expect, we just get the actual device directly from udev by resolving the /dev/disk/by-partlabel which links to the actual named device.

We were expecting them to follow us the device name + numer at the end
but mmc and nvme partitions follow a different schema.

In order to make this work for anything and even new schemas that we may
not expect, we just get the actual device directly from udev by
resolving the /dev/disk/by-partlabel which links to the actual named
device.

Signed-off-by: Itxaka <itxaka@kairos.io>
@Itxaka Itxaka requested a review from a team September 26, 2024 15:18
Copy link

codecov bot commented Sep 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 49.73%. Comparing base (cd5ab69) to head (fff14fe).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #563      +/-   ##
==========================================
+ Coverage   49.70%   49.73%   +0.03%     
==========================================
  Files          48       48              
  Lines        4585     4588       +3     
==========================================
+ Hits         2279     2282       +3     
  Misses       2029     2029              
  Partials      277      277              

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

@Itxaka Itxaka merged commit 84d87b3 into main Sep 27, 2024
14 checks passed
@Itxaka Itxaka deleted the fix_partitioner_mmc_nvme branch September 27, 2024 07:53
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.

2 participants