|
|
@ -125,8 +125,8 @@ impl Mapping {
|
|
|
|
.map_err(|e| ChrootError::Mount(dst.to_owned(), e))?;
|
|
|
|
.map_err(|e| ChrootError::Mount(dst.to_owned(), e))?;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
let fs_type =
|
|
|
|
let fs_type =
|
|
|
|
FilesystemType::Manual(opt.fs_type.as_ref().map(String::as_str).unwrap_or(""));
|
|
|
|
FilesystemType::Manual(opt.fs_type.as_deref().unwrap_or(""));
|
|
|
|
let flags = opt.mount_flags.unwrap_or_else(|| MountFlags::empty());
|
|
|
|
let flags = opt.mount_flags.unwrap_or_else(MountFlags::empty);
|
|
|
|
|
|
|
|
|
|
|
|
let mount = MountBuilder::default()
|
|
|
|
let mount = MountBuilder::default()
|
|
|
|
.fstype(fs_type)
|
|
|
|
.fstype(fs_type)
|
|
|
|