Support chroot images

This commit is contained in:
Roey Darwish Dror
2019-06-17 20:56:26 +03:00
parent eddecf8c6b
commit 92f5bdfeab
2 changed files with 12 additions and 5 deletions

View File

@@ -26,10 +26,10 @@ impl LoopDevice {
))?
}
Ok(LoopDevice {
path: PathBuf::from(String::from_utf8(output.stdout).unwrap().trim()),
losetup,
})
let path = PathBuf::from(String::from_utf8(output.stdout).unwrap().trim());
info!("Mounted {} to {}", file.display(), path.display());
Ok(LoopDevice { path, losetup })
}
pub fn path(&self) -> &Path {