diff --git a/cli/oci.go b/cli/oci.go index 67077843e5..9f19a0440b 100644 --- a/cli/oci.go +++ b/cli/oci.go @@ -123,7 +123,7 @@ func isCgroupMounted(cgroupPath string) bool { return false } - if statFs.Type != int64(cgroupFsType) { + if statFs.Type != archConvertStatFs(cgroupFsType) { return false } diff --git a/cli/utils_arch_base.go b/cli/utils_arch_base.go new file mode 100644 index 0000000000..a0c6a5e71f --- /dev/null +++ b/cli/utils_arch_base.go @@ -0,0 +1,10 @@ +// +build !s390x +// +// SPDX-License-Identifier: Apache-2.0 +// + +package main + +func archConvertStatFs(cgroupFsType int) int64 { + return int64(cgroupFsType) +}