mirror of
https://github.com/containers/podman.git
synced 2025-08-26 03:01:31 +08:00
libpod: use /var/run instead of /run on FreeBSD
This changes /run to /var/run for .containerenv and secrets in FreeBSD containers for consistency with FreeBSD path conventions. Running Linux containers on FreeBSD hosts continue to use /run for compatibility. [NO NEW TESTS NEEDED] Signed-off-by: Doug Rabson <dfr@rabson.org>
This commit is contained in:
11
pkg/specgen/generate/storage_linux.go
Normal file
11
pkg/specgen/generate/storage_linux.go
Normal file
@ -0,0 +1,11 @@
|
||||
package generate
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/containers/common/libimage"
|
||||
)
|
||||
|
||||
func imageRunPath(ctx context.Context, img *libimage.Image) (string, error) {
|
||||
return "/run", nil
|
||||
}
|
Reference in New Issue
Block a user