mirror of
https://github.com/edera-dev/sprout.git
synced 2025-12-19 14:00:18 +00:00
fix(filesystem-device-match): has-partition-type-uuid should fetch the partition type guid
This commit is contained in:
@@ -98,9 +98,9 @@ pub fn extract(
|
|||||||
.deref()
|
.deref()
|
||||||
.to_boxed();
|
.to_boxed();
|
||||||
|
|
||||||
// Fetch the partition uuid for this filesystem.
|
// Fetch the partition type uuid for this filesystem.
|
||||||
let partition_type_uuid =
|
let partition_type_uuid =
|
||||||
utils::partition_guid(&root, utils::PartitionGuidForm::Partition)
|
utils::partition_guid(&root, utils::PartitionGuidForm::PartitionType)
|
||||||
.context("unable to fetch the partition uuid of the filesystem")?;
|
.context("unable to fetch the partition uuid of the filesystem")?;
|
||||||
// Compare the partition type uuid to the parsed uuid.
|
// Compare the partition type uuid to the parsed uuid.
|
||||||
// If it does not match, continue to the next filesystem.
|
// If it does not match, continue to the next filesystem.
|
||||||
|
|||||||
Reference in New Issue
Block a user