diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2020-04-24 11:41:37 +0200 |
---|---|---|
committer | Giuseppe Scrivano <gscrivan@redhat.com> | 2020-04-24 12:56:20 +0200 |
commit | a3acc4f97775a446f93deeb924ab99b708bcfe88 (patch) | |
tree | fd10fd2f5b3be1931074c2b22858479d8035c567 /pkg/specgen/generate/container.go | |
parent | 23d431f0bf4ef4e550d23b43264c2ffdc940c767 (diff) | |
download | podman-a3acc4f97775a446f93deeb924ab99b708bcfe88.tar.gz podman-a3acc4f97775a446f93deeb924ab99b708bcfe88.tar.bz2 podman-a3acc4f97775a446f93deeb924ab99b708bcfe88.zip |
podman: add support for --rootfs
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'pkg/specgen/generate/container.go')
-rw-r--r-- | pkg/specgen/generate/container.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkg/specgen/generate/container.go b/pkg/specgen/generate/container.go index de3239fda..9797ad572 100644 --- a/pkg/specgen/generate/container.go +++ b/pkg/specgen/generate/container.go @@ -15,7 +15,11 @@ import ( func CompleteSpec(ctx context.Context, r *libpod.Runtime, s *specgen.SpecGenerator) error { var appendEntryPoint bool - // TODO add support for raw rootfs + // If a rootfs is used, then there is no image data + if s.ContainerStorageConfig.Rootfs != "" { + return nil + } + newImage, err := r.ImageRuntime().NewFromLocal(s.Image) if err != nil { return err |