Skip to content

Commit 7929838

Browse files
committed
try with cgroupsv22 check disabled in main
Signed-off-by: Lokesh Mandvekar <[email protected]>
1 parent 64f491d commit 7929838

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

cmd/buildah/main.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import (
1414
"github.com/containers/buildah/define"
1515
"github.com/containers/buildah/pkg/cli"
1616
"github.com/containers/buildah/pkg/parse"
17-
"github.com/opencontainers/cgroups"
1817
ispecs "github.com/opencontainers/image-spec/specs-go"
1918
rspecs "github.com/opencontainers/runtime-spec/specs-go"
2019
"github.com/sirupsen/logrus"
@@ -232,11 +231,6 @@ func main() {
232231
return
233232
}
234233

235-
cgroupsv2 := cgroups.IsCgroup2UnifiedMode()
236-
if !cgroupsv2 {
237-
logrus.Fatalf("Did not detect Cgroups v2 on your system. Please switch to Cgroups v2.")
238-
}
239-
240234
// Hard code TMPDIR functions to use $TMPDIR or /var/tmp
241235
os.Setenv("TMPDIR", parse.GetTempDir())
242236

0 commit comments

Comments
 (0)