mirror of
https://github.com/containers/podman.git
synced 2025-07-01 16:17:06 +08:00
podman --runroot: remove 50 char length restriction
This was added ages ago in commit c65b3599cc, however in the meantime both podman and conmon can support longer socket paths as they use a workaround to open the path via /proc/self/fd, see openUnixSocket() in libpod/oci_conmon_attach_linux.go Thus this restriction is not needed anymore and we can drop a workaround in the tests. Fixes #22272 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@ -93,9 +93,6 @@ func getRuntime(ctx context.Context, fs *flag.FlagSet, opts *engineOpts) (*libpo
|
||||
storageOpts.ImageStore = cfg.ImageStore
|
||||
options = append(options, libpod.WithImageStore(cfg.ImageStore))
|
||||
}
|
||||
if len(storageOpts.RunRoot) > 50 {
|
||||
return nil, errors.New("the specified runroot is longer than 50 characters")
|
||||
}
|
||||
if fs.Changed("storage-driver") {
|
||||
storageSet = true
|
||||
storageOpts.GraphDriverName = cfg.StorageDriver
|
||||
|
@ -17,9 +17,8 @@ function setup_suite() {
|
||||
IFS="
|
||||
"
|
||||
|
||||
# Can't use $BATS_SUITE_TMPDIR because podman barfs:
|
||||
# Error: the specified runroot is longer than 50 characters
|
||||
export PODMAN_LOGIN_WORKDIR=$(mktemp -d --tmpdir=${BATS_TMPDIR:-${TMPDIR:-/tmp}} podman-bats-registry.XXXXXX)
|
||||
export PODMAN_LOGIN_WORKDIR="$BATS_SUITE_TMPDIR/podman-bats-registry"
|
||||
mkdir "$PODMAN_LOGIN_WORKDIR"
|
||||
|
||||
export PODMAN_LOGIN_USER="user$(random_string 4)"
|
||||
export PODMAN_LOGIN_PASS="pw$(random_string 15)"
|
||||
|
Reference in New Issue
Block a user