commit
						f439f4e9da
					
				|  | @ -123,6 +123,9 @@ build_task: | ||||||
|               DISTRO_NV: ${DEBIAN_NAME} |               DISTRO_NV: ${DEBIAN_NAME} | ||||||
|               VM_IMAGE_NAME: ${DEBIAN_CACHE_IMAGE_NAME} |               VM_IMAGE_NAME: ${DEBIAN_CACHE_IMAGE_NAME} | ||||||
|               CI_DESIRED_RUNTIME: runc |               CI_DESIRED_RUNTIME: runc | ||||||
|  |               CI_DESIRED_NETWORK: netavark | ||||||
|  |               # Ignore cgroups-v1 warnings on debian | ||||||
|  |               PODMAN_IGNORE_CGROUPSV1_WARNING: true | ||||||
|     env: |     env: | ||||||
|         TEST_FLAVOR: build |         TEST_FLAVOR: build | ||||||
|     # NOTE: The default way Cirrus-CI clones is *NOT* compatible with |     # NOTE: The default way Cirrus-CI clones is *NOT* compatible with | ||||||
|  |  | ||||||
|  | @ -95,7 +95,7 @@ EPOCH_TEST_COMMIT="$CIRRUS_BASE_SHA" | ||||||
| # contexts, such as host->container or root->rootless user | # contexts, such as host->container or root->rootless user | ||||||
| # | # | ||||||
| # List of envariables which must be EXACT matches | # List of envariables which must be EXACT matches | ||||||
| PASSTHROUGH_ENV_EXACT='CGROUP_MANAGER|DEST_BRANCH|DISTRO_NV|GOCACHE|GOPATH|GOSRC|OCI_RUNTIME|ROOTLESS_USER|SCRIPT_BASE|SKIP_USERNS|EC2_INST_TYPE|PODMAN_DB|STORAGE_FS' | PASSTHROUGH_ENV_EXACT='CGROUP_MANAGER|DEST_BRANCH|DISTRO_NV|GOCACHE|GOPATH|GOSRC|NETWORK_BACKEND|OCI_RUNTIME|PODMAN_IGNORE_CGROUPSV1_WARNING|ROOTLESS_USER|SCRIPT_BASE|SKIP_USERNS|EC2_INST_TYPE|PODMAN_DB|STORAGE_FS' | ||||||
| 
 | 
 | ||||||
| # List of envariable patterns which must match AT THE BEGINNING of the name. | # List of envariable patterns which must match AT THE BEGINNING of the name. | ||||||
| PASSTHROUGH_ENV_ATSTART='CI|LANG|LC_|TEST' | PASSTHROUGH_ENV_ATSTART='CI|LANG|LC_|TEST' | ||||||
|  |  | ||||||
|  | @ -393,6 +393,15 @@ func makeRuntime(runtime *Runtime) (retErr error) { | ||||||
| 	runtime.mergeDBConfig(dbConfig) | 	runtime.mergeDBConfig(dbConfig) | ||||||
| 
 | 
 | ||||||
| 	unified, _ := cgroups.IsCgroup2UnifiedMode() | 	unified, _ := cgroups.IsCgroup2UnifiedMode() | ||||||
|  | 	// DELETE ON RHEL9
 | ||||||
|  | 	if !unified { | ||||||
|  | 		_, ok := os.LookupEnv("PODMAN_IGNORE_CGROUPSV1_WARNING") | ||||||
|  | 		if !ok { | ||||||
|  | 			logrus.Warn("Using cgroups-v1 which is deprecated in favor of cgroups-v2 with Podman v5 and will be removed in a future version. Set environment variable `PODMAN_IGNORE_CGROUPSV1_WARNING` to hide this warning.") | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 	// DELETE ON RHEL9
 | ||||||
|  | 
 | ||||||
| 	if unified && rootless.IsRootless() && !systemd.IsSystemdSessionValid(rootless.GetRootlessUID()) { | 	if unified && rootless.IsRootless() && !systemd.IsSystemdSessionValid(rootless.GetRootlessUID()) { | ||||||
| 		// If user is rootless and XDG_RUNTIME_DIR is found, podman will not proceed with /tmp directory
 | 		// If user is rootless and XDG_RUNTIME_DIR is found, podman will not proceed with /tmp directory
 | ||||||
| 		// it will try to use existing XDG_RUNTIME_DIR
 | 		// it will try to use existing XDG_RUNTIME_DIR
 | ||||||
|  |  | ||||||
|  | @ -211,6 +211,11 @@ when `%{_bindir}/%{name}sh` is set as a login shell or set as os.Args[0]. | ||||||
| %autosetup -Sgit -n %{name}-%{version_no_tilde} | %autosetup -Sgit -n %{name}-%{version_no_tilde} | ||||||
| sed -i 's;@@PODMAN@@\;$(BINDIR);@@PODMAN@@\;%{_bindir};' Makefile | sed -i 's;@@PODMAN@@\;$(BINDIR);@@PODMAN@@\;%{_bindir};' Makefile | ||||||
| 
 | 
 | ||||||
|  | # cgroups-v1 is supported on rhel9 | ||||||
|  | %if 0%{?rhel} == 9 | ||||||
|  | sed -i '/DELETE ON RHEL9/,/DELETE ON RHEL9/d' libpod/runtime.go | ||||||
|  | %endif | ||||||
|  | 
 | ||||||
| # These changes are only meant for copr builds | # These changes are only meant for copr builds | ||||||
| %if %{defined copr_build} | %if %{defined copr_build} | ||||||
| # podman --version should show short sha | # podman --version should show short sha | ||||||
|  |  | ||||||
|  | @ -88,6 +88,11 @@ verify_iid_and_name() { | ||||||
|         skip "impossible due to pitfalls in our SSH implementation" |         skip "impossible due to pitfalls in our SSH implementation" | ||||||
|     fi |     fi | ||||||
| 
 | 
 | ||||||
|  |     # See https://github.com/containers/podman/pull/21431 | ||||||
|  |     if [[ -n "$PODMAN_IGNORE_CGROUPSV1_WARNING" ]]; then | ||||||
|  |         skip "impossible to test due to pitfalls in our SSH implementation" | ||||||
|  |     fi | ||||||
|  | 
 | ||||||
|     # The testing is the same whether we're root or rootless; all that |     # The testing is the same whether we're root or rootless; all that | ||||||
|     # differs is the destination (not-me) username. |     # differs is the destination (not-me) username. | ||||||
|     if is_rootless; then |     if is_rootless; then | ||||||
|  |  | ||||||
|  | @ -153,6 +153,11 @@ Notify=yes | ||||||
| LogDriver=passthrough | LogDriver=passthrough | ||||||
| EOF | EOF | ||||||
| 
 | 
 | ||||||
|  |     # FIXME: Temporary until podman fully removes cgroupsv1 support; see #21431 | ||||||
|  |     if [[ -n "$PODMAN_IGNORE_CGROUPSV1_WARNING" ]]; then | ||||||
|  |         skip "Way too complicated to test under cgroupsv1, and not worth the effort" | ||||||
|  |     fi | ||||||
|  | 
 | ||||||
|     run_quadlet "$quadlet_file" |     run_quadlet "$quadlet_file" | ||||||
|     service_setup $QUADLET_SERVICE_NAME |     service_setup $QUADLET_SERVICE_NAME | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue