Skip to content

Commit 245050f

Browse files
hanthorgemini-code-assist[bot]
authored andcommitted
Update crates/blockdev/src/blockdev.rs
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Signed-off-by: James Reilly <jreilly1821@gmail.com>
1 parent f61730b commit 245050f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/blockdev/src/blockdev.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ fn list_dev_for_zfs_dataset(dataset: &str) -> Result<Device> {
411411
pub fn list_dev_by_dir(dir: &Dir) -> Result<Device> {
412412
let fsinfo = bootc_mount::inspect_filesystem_of_dir(dir)?;
413413
let source = &fsinfo.source;
414-
if fsinfo.fstype == "zfs" || (!source.starts_with('/') && source.contains('/')) {
414+
if fsinfo.fstype == "zfs" || source.starts_with("ZFS=") {
415415
return list_dev_for_zfs_dataset(source);
416416
}
417417
list_dev(&Utf8PathBuf::from(source))

0 commit comments

Comments
 (0)