1
0
mirror of https://github.com/kata-containers/kata-containers.git synced 2025-08-21 17:34:31 +00:00

agent: skip mount options that start with "io.katacontainers."

This is so that file systems don't fail when we pass kata-specific
options from the snapshotter to kata.

Fixes: 

Signed-off-by: Wedson Almeida Filho <walmeida@microsoft.com>
This commit is contained in:
Wedson Almeida Filho 2023-04-20 09:42:43 -03:00
parent fa35afa982
commit 6163c35657

View File

@ -813,10 +813,14 @@ fn parse_mount_flags_and_options(options_vec: Vec<&str>) -> (MsFlags, String) {
}
}
None => {
if opt.starts_with("io.katacontainers.") {
continue;
}
if !options.is_empty() {
options.push_str(format!(",{}", opt).as_str());
} else {
options.push_str(opt.to_string().as_str());
options.push_str(opt);
}
}
};