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

WIP: refactor: made function get_partition_info() matching disk label language agnostic #137

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

HarryWaschkeit
Copy link

No description provided.

@CLAassistant
Copy link

CLAassistant commented Nov 25, 2024

CLA assistant check
All committers have signed the CLA.

Signed-off-by: Harry Waschkeit <[email protected]>
@@ -393,7 +393,7 @@ fn get_partition_info(image_file: &str, partition: &Partition) -> Result<Partiti
Partition::boot => 1,
Partition::rootA => 2,
p @ (Partition::factory | Partition::cert) => {
let re = Regex::new(r"Disklabel type: (\D{3})").unwrap();
let re = Regex::new(r": (dos|gpt)").unwrap();
Copy link
Contributor

Choose a reason for hiding this comment

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

I suggest to don't use fdisk (we don't know if it is installed, and which version, e.g. busybox and so on).
We should look into crates which read partition tables.

@HarryWaschkeit HarryWaschkeit changed the title refactor: made function get_partition_info() matching disk label language agnostic WIP: refactor: made function get_partition_info() matching disk label language agnostic Nov 25, 2024
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