ci(checkpoint): workaround to avoid mutate cgroupv2 mount options

add --manage-cgroups-mode ignore to avoid pollute cgroupv2 mount options
during unittest and intergration test
https://github.com/checkpoint-restore/criu/issues/3029

Signed-off-by: sean <xujihui1985@gmail.com>
This commit is contained in:
sean
2026-05-30 22:49:58 +08:00
committed by Xu Jihui
parent 20628648e0
commit 3805b01e8a
2 changed files with 27 additions and 23 deletions
+8 -6
View File
@@ -83,9 +83,10 @@ func testCheckpoint(t *testing.T, userns bool) {
parentImage = "../criu-parent"
parentDir := filepath.Join(tmp, "criu-parent")
preDumpOpts := &libcontainer.CriuOpts{
ImagesDirectory: parentDir,
WorkDirectory: parentDir,
PreDump: true,
ImagesDirectory: parentDir,
WorkDirectory: parentDir,
PreDump: true,
ManageCgroupsMode: "ignore",
}
if err := container.Checkpoint(preDumpOpts); err != nil {
@@ -103,9 +104,10 @@ func testCheckpoint(t *testing.T, userns bool) {
imagesDir := filepath.Join(tmp, "criu")
checkpointOpts := &libcontainer.CriuOpts{
ImagesDirectory: imagesDir,
WorkDirectory: imagesDir,
ParentImage: parentImage,
ImagesDirectory: imagesDir,
WorkDirectory: imagesDir,
ParentImage: parentImage,
ManageCgroupsMode: "ignore",
}
if err := container.Checkpoint(checkpointOpts); err != nil {