Change mount dest after resolving symlinks
We need to update the mount's destination after we resolve symlinks so that it properly creates and mounts the correct location. Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
parent
7570169548
commit
b3bb606513
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue