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
maorv committed Apr 26, 2022
1 parent 565d1f9 commit c89c73f
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 c89c73f

Please sign in to comment.