mirror of
https://github.com/containers/skopeo.git
synced 2025-09-24 03:17:17 +00:00
Manually update buildah to v1.13.1
Should help with #791. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
This commit is contained in:
committed by
Valentin Rothberg
parent
4489ddd8a5
commit
7cbb8ad3ba
14
vendor/github.com/containers/storage/layers.go
generated
vendored
14
vendor/github.com/containers/storage/layers.go
generated
vendored
@@ -18,6 +18,7 @@ import (
|
||||
"github.com/containers/storage/pkg/archive"
|
||||
"github.com/containers/storage/pkg/idtools"
|
||||
"github.com/containers/storage/pkg/ioutils"
|
||||
"github.com/containers/storage/pkg/mount"
|
||||
"github.com/containers/storage/pkg/stringid"
|
||||
"github.com/containers/storage/pkg/system"
|
||||
"github.com/containers/storage/pkg/tarlog"
|
||||
@@ -776,8 +777,17 @@ func (r *layerStore) Mount(id string, options drivers.MountOpts) (string, error)
|
||||
return "", ErrLayerUnknown
|
||||
}
|
||||
if layer.MountCount > 0 {
|
||||
layer.MountCount++
|
||||
return layer.MountPoint, r.saveMounts()
|
||||
mounted, err := mount.Mounted(layer.MountPoint)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
// If the container is not mounted then we have a condition
|
||||
// where the kernel umounted the mount point. This means
|
||||
// that the mount count never got decremented.
|
||||
if mounted {
|
||||
layer.MountCount++
|
||||
return layer.MountPoint, r.saveMounts()
|
||||
}
|
||||
}
|
||||
if options.MountLabel == "" {
|
||||
options.MountLabel = layer.MountLabel
|
||||
|
Reference in New Issue
Block a user