mirror of
https://github.com/containers/podman.git
synced 2025-11-13 01:29:06 +08:00
Vendor in containers/(storage,image, common, buildah)
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
8
vendor/github.com/containers/buildah/unmount.go
generated
vendored
8
vendor/github.com/containers/buildah/unmount.go
generated
vendored
@@ -1,19 +1,17 @@
|
||||
package buildah
|
||||
|
||||
import (
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
import "fmt"
|
||||
|
||||
// Unmount unmounts a build container.
|
||||
func (b *Builder) Unmount() error {
|
||||
_, err := b.store.Unmount(b.ContainerID, false)
|
||||
if err != nil {
|
||||
return errors.Wrapf(err, "error unmounting build container %q", b.ContainerID)
|
||||
return fmt.Errorf("error unmounting build container %q: %w", b.ContainerID, err)
|
||||
}
|
||||
b.MountPoint = ""
|
||||
err = b.Save()
|
||||
if err != nil {
|
||||
return errors.Wrapf(err, "error saving updated state for build container %q", b.ContainerID)
|
||||
return fmt.Errorf("error saving updated state for build container %q: %w", b.ContainerID, err)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user