aboutsummaryrefslogtreecommitdiff
path: root/pkg/specgenutil/specgen.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-03-14 07:50:15 -0400
committerGitHub <noreply@github.com>2022-03-14 07:50:15 -0400
commit219f1162407b8f4c2c05aa07166b999d64ead113 (patch)
tree0a25a2cf34698a2e3e7651a1bcda6cbcb0b08b44 /pkg/specgenutil/specgen.go
parent0144cabc41b82e4c1b59f681ca845c01ae1735de (diff)
parente8968c867f7af21f9e5eec661f7e057a74127511 (diff)
downloadpodman-219f1162407b8f4c2c05aa07166b999d64ead113.tar.gz
podman-219f1162407b8f4c2c05aa07166b999d64ead113.tar.bz2
podman-219f1162407b8f4c2c05aa07166b999d64ead113.zip
Merge pull request #13221 from LStandman/main
Add support for --chrootdirs
Diffstat (limited to 'pkg/specgenutil/specgen.go')
-rw-r--r--pkg/specgenutil/specgen.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/specgenutil/specgen.go b/pkg/specgenutil/specgen.go
index b037e14cc..b87da61fb 100644
--- a/pkg/specgenutil/specgen.go
+++ b/pkg/specgenutil/specgen.go
@@ -819,6 +819,9 @@ func FillOutSpecGen(s *specgen.SpecGenerator, c *entities.ContainerCreateOptions
if !s.UnsetEnvAll {
s.UnsetEnvAll = c.UnsetEnvAll
}
+ if len(s.ChrootDirs) == 0 || len(c.ChrootDirs) != 0 {
+ s.ChrootDirs = c.ChrootDirs
+ }
// Initcontainers
if len(s.InitContainerType) == 0 || len(c.InitContainerType) != 0 {