mirror of
https://github.com/containers/podman.git
synced 2025-10-16 18:53:19 +08:00
Set default storage from containers.conf for temporary images
Fixes: https://github.com/containers/podman/issues/11107 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
11
vendor/github.com/containers/common/pkg/config/default.go
generated
vendored
11
vendor/github.com/containers/common/pkg/config/default.go
generated
vendored
@ -244,6 +244,8 @@ func defaultConfigFromMemory() (*EngineConfig, error) {
|
||||
logrus.Warnf("Storage configuration is unset - using hardcoded default graph root %q", _defaultGraphRoot)
|
||||
storeOpts.GraphRoot = _defaultGraphRoot
|
||||
}
|
||||
c.graphRoot = storeOpts.GraphRoot
|
||||
c.ImageCopyTmpDir = "/var/tmp"
|
||||
c.StaticDir = filepath.Join(storeOpts.GraphRoot, "libpod")
|
||||
c.VolumePath = filepath.Join(storeOpts.GraphRoot, "volumes")
|
||||
|
||||
@ -297,6 +299,10 @@ func defaultConfigFromMemory() (*EngineConfig, error) {
|
||||
"/sbin/runsc",
|
||||
"/run/current-system/sw/bin/runsc",
|
||||
},
|
||||
"krun": {
|
||||
"/usr/bin/krun",
|
||||
"/usr/local/bin/krun",
|
||||
},
|
||||
}
|
||||
// Needs to be called after populating c.OCIRuntimes
|
||||
c.OCIRuntime = c.findRuntime()
|
||||
@ -320,9 +326,10 @@ func defaultConfigFromMemory() (*EngineConfig, error) {
|
||||
"runc",
|
||||
"kata",
|
||||
"runsc",
|
||||
"krun",
|
||||
}
|
||||
c.RuntimeSupportsNoCgroups = []string{"crun"}
|
||||
c.RuntimeSupportsKVM = []string{"kata", "kata-runtime", "kata-qemu", "kata-fc"}
|
||||
c.RuntimeSupportsNoCgroups = []string{"crun", "krun"}
|
||||
c.RuntimeSupportsKVM = []string{"kata", "kata-runtime", "kata-qemu", "kata-fc", "krun"}
|
||||
c.InitPath = DefaultInitPath
|
||||
c.NoPivotRoot = false
|
||||
|
||||
|
Reference in New Issue
Block a user