mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-28 03:42:09 +00:00
Dragonball: fix Nydus config serde problem
Since Nydus snapshotter has been updated in previous commits, there is a problem that the config passthrough to Dragonball during mount_rafs is RafsConfig instead of ConfigV2, but Dragonball could only serde ConfigV2 so it will panic. We need to add the support for RafsConfig Fixes:#8013 Signed-off-by: Chao Wu <chaowu@linux.alibaba.com>
This commit is contained in:
parent
1974d13122
commit
678fe3cd31
@ -475,7 +475,7 @@ impl<AS: GuestAddressSpace> VirtioFs<AS> {
|
||||
let (mut rafs, rafs_cfg) = match config.as_ref() {
|
||||
Some(cfg) => {
|
||||
let rafs_conf: Arc<ConfigV2> = Arc::new(
|
||||
serde_json::from_str(cfg).map_err(|e| FsError::BackendFs(e.to_string()))?,
|
||||
ConfigV2::from_str(cfg).map_err(|e| FsError::BackendFs(e.to_string()))?,
|
||||
);
|
||||
|
||||
(
|
||||
|
Loading…
Reference in New Issue
Block a user