Skip to content

Commit

Permalink
overlay driver: fix incorrect path of link dir
Browse files Browse the repository at this point in the history
When using link entry, in some situations the link prefix wasn't add
which cause mount of overlay to fail.
This causes failure to podman operation.

Signed-off-by: Maor Vanmak <maor.vanmak@gmail.com>
  • Loading branch information
maor-lb committed Apr 26, 2022
1 parent 565d1f9 commit 3659059
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/overlay/overlay.go
Expand Up @@ -1389,7 +1389,7 @@ func (d *Driver) get(id string, disableShifting bool, options graphdriver.MountO
}
for err == nil {
absLowers = append(absLowers, filepath.Join(dir, nameWithSuffix("diff", diffN)))
relLowers = append(relLowers, dumbJoin(string(link), "..", nameWithSuffix("diff", diffN)))
relLowers = append(relLowers, dumbJoin(linkDir, string(link), "..", nameWithSuffix("diff", diffN)))
diffN++
st, err = os.Stat(filepath.Join(dir, nameWithSuffix("diff", diffN)))
if err == nil && !permsKnown {
Expand Down

0 comments on commit 3659059

Please sign in to comment.