mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-09 03:48:05 +00:00
Merge pull request #10500 from squarti/fix-10499
runtime: Files are not synced between host and guest VMs
This commit is contained in:
commit
c332e953f9
@ -64,6 +64,14 @@ func resolveRootDir() string {
|
|||||||
// Use the default root dir in case of any errors resolving the root dir symlink
|
// Use the default root dir in case of any errors resolving the root dir symlink
|
||||||
return defaultKubernetesRootDir
|
return defaultKubernetesRootDir
|
||||||
}
|
}
|
||||||
|
// Make root dir an absolute path if needed
|
||||||
|
if !filepath.IsAbs(rootDir) {
|
||||||
|
rootDir, err = filepath.Abs(filepath.Join(filepath.Dir(defaultKubernetesRootDir), rootDir))
|
||||||
|
if err != nil {
|
||||||
|
// Use the default root dir in case of any errors resolving the root dir symlink
|
||||||
|
return defaultKubernetesRootDir
|
||||||
|
}
|
||||||
|
}
|
||||||
return rootDir
|
return rootDir
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user