mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-08-08 23:54:51 +00:00
runtime-rs: Correct the mount type for emptydir with local storage
Previous set for the Mount.type with `bind` is wrong, and for local storage, the type of Mount should be `local`. This commit aims to correct the type with "local". Signed-off-by: Alex Lyn <alex.lyn@antgroup.com>
This commit is contained in:
@@ -80,7 +80,7 @@ impl LocalStorage {
|
||||
let mounts: Vec<oci::Mount> = if sid != cid {
|
||||
let mut mount = oci::Mount::default();
|
||||
mount.set_destination(m.destination().clone());
|
||||
mount.set_typ(Some("bind".to_string()));
|
||||
mount.set_typ(Some(KATA_K8S_LOCAL_STORAGE_TYPE.to_string()));
|
||||
mount.set_source(Some(PathBuf::from(&source)));
|
||||
mount.set_options(m.options().clone());
|
||||
vec![mount]
|
||||
|
||||
Reference in New Issue
Block a user