Skip to content

Commit

Permalink
topology: Cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Ikey Doherty <[email protected]>
  • Loading branch information
ikeycode committed May 23, 2024
1 parent 8c794cf commit c94e8e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/topology/src/disk/probe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,16 +134,16 @@ impl Probe {
Ok(sb)
}

/// Determine the composite rootfs device for the given mountpoint,
/// building a set of superblocks and necessary `/proc/cmdline` arguments
pub fn get_rootfs_device(&self, path: impl AsRef<Path>) -> Result<BlockDevice, super::Error> {
let path = path.as_ref();
let device = self.get_device_from_mountpoint(path)?;

// Scan GPT for PartUUID
let guid = if let Some(parent) = self.get_device_parent(&device) {
log::warn!("guid {}", parent.display());
self.get_device_guid(parent, &device)
} else {
log::warn!("no parent");
None
};

Expand Down

0 comments on commit c94e8e3

Please sign in to comment.