mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
Merge pull request #296 from crosbymichael/mount-resolv-symlink
Change mount dest after resolving symlinks
This commit is contained in:
@@ -158,6 +158,8 @@ func mountToRootfs(m *configs.Mount, rootfs, mountLabel string) error {
|
||||
if err := checkMountDestination(rootfs, dest); err != nil {
|
||||
return err
|
||||
}
|
||||
// update the mount with the correct dest after symlinks are resolved.
|
||||
m.Destination = dest
|
||||
if err := createIfNotExists(dest, stat.IsDir()); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user