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:
Alex Lyn
2025-11-11 17:09:33 +08:00
parent 935ecf2765
commit 79d1a6ed8f

View File

@@ -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]