Skip to content

Commit

Permalink
Merge pull request containers#22277 from Luap99/runroot
Browse files Browse the repository at this point in the history
podman --runroot: remove 50 char length restriction
  • Loading branch information
openshift-merge-bot[bot] authored Apr 6, 2024
2 parents 19600fa + fcf9327 commit 447d3e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 0 additions & 3 deletions pkg/domain/infra/runtime_libpod.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 2 additions & 3 deletions test/system/setup_suite.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down

0 comments on commit 447d3e2

Please sign in to comment.