mirror of
https://github.com/containers/podman.git
synced 2025-09-27 00:34:32 +08:00
vendor: update containers/buildah
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
8
vendor/github.com/containers/buildah/mount.go
generated
vendored
8
vendor/github.com/containers/buildah/mount.go
generated
vendored
@ -1,17 +1,21 @@
|
||||
package buildah
|
||||
|
||||
import (
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
// Mount mounts a container's root filesystem in a location which can be
|
||||
// accessed from the host, and returns the location.
|
||||
func (b *Builder) Mount(label string) (string, error) {
|
||||
mountpoint, err := b.store.Mount(b.ContainerID, label)
|
||||
if err != nil {
|
||||
return "", err
|
||||
return "", errors.Wrapf(err, "error mounting build container %q", b.ContainerID)
|
||||
}
|
||||
b.MountPoint = mountpoint
|
||||
|
||||
err = b.Save()
|
||||
if err != nil {
|
||||
return "", err
|
||||
return "", errors.Wrapf(err, "error saving updated state for build container %q", b.ContainerID)
|
||||
}
|
||||
return mountpoint, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user