mirror of
https://github.com/containers/podman.git
synced 2025-09-27 16:54:42 +08:00
vendor: update containers/buildah
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
16
vendor/github.com/containers/buildah/unmount.go
generated
vendored
16
vendor/github.com/containers/buildah/unmount.go
generated
vendored
@ -1,11 +1,19 @@
|
||||
package buildah
|
||||
|
||||
import (
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
// Unmount unmounts a build container.
|
||||
func (b *Builder) Unmount() error {
|
||||
_, err := b.store.Unmount(b.ContainerID, false)
|
||||
if err == nil {
|
||||
b.MountPoint = ""
|
||||
err = b.Save()
|
||||
if err != nil {
|
||||
return errors.Wrapf(err, "error unmounting build container %q", b.ContainerID)
|
||||
}
|
||||
return err
|
||||
b.MountPoint = ""
|
||||
err = b.Save()
|
||||
if err != nil {
|
||||
return errors.Wrapf(err, "error saving updated state for build container %q", b.ContainerID)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user