summaryrefslogtreecommitdiff
path: root/pkg/specgen/generate/container_create.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-09-14 13:14:11 -0400
committerGitHub <noreply@github.com>2021-09-14 13:14:11 -0400
commit6a34045c670b3f0184b4ba88faeb11bb4a58c747 (patch)
tree856e9ffd0eba7b03c7ee02987f7f61b966eb8ca1 /pkg/specgen/generate/container_create.go
parent65b1ff25a3444f16c9b0524f8a02cd6e56976e2b (diff)
parenta55e2a00fcb82485333eeec55aa2eaee338782d7 (diff)
downloadpodman-6a34045c670b3f0184b4ba88faeb11bb4a58c747.tar.gz
podman-6a34045c670b3f0184b4ba88faeb11bb4a58c747.tar.bz2
podman-6a34045c670b3f0184b4ba88faeb11bb4a58c747.zip
Merge pull request #11170 from flouthoc/support-rootfs-overlay
rootfs: Add support for rootfs-overlay.
Diffstat (limited to 'pkg/specgen/generate/container_create.go')
-rw-r--r--pkg/specgen/generate/container_create.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/specgen/generate/container_create.go b/pkg/specgen/generate/container_create.go
index f82b2a3c6..fbb229e1c 100644
--- a/pkg/specgen/generate/container_create.go
+++ b/pkg/specgen/generate/container_create.go
@@ -90,7 +90,7 @@ func MakeContainer(ctx context.Context, rt *libpod.Runtime, s *specgen.SpecGener
var newImage *libimage.Image
var imageData *libimage.ImageData
if s.Rootfs != "" {
- options = append(options, libpod.WithRootFS(s.Rootfs))
+ options = append(options, libpod.WithRootFS(s.Rootfs, s.RootfsOverlay))
} else {
var resolvedImageName string
newImage, resolvedImageName, err = rt.LibimageRuntime().LookupImage(s.Image, nil)
@@ -394,7 +394,7 @@ func createContainerOptions(ctx context.Context, rt *libpod.Runtime, s *specgen.
options = append(options, libpod.WithShmSize(*s.ShmSize))
}
if s.Rootfs != "" {
- options = append(options, libpod.WithRootFS(s.Rootfs))
+ options = append(options, libpod.WithRootFS(s.Rootfs, s.RootfsOverlay))
}
// Default used if not overridden on command line