diff --git a/e2e/actions/actions.go b/e2e/actions/actions.go index 994d75c8d..9b571c5db 100644 --- a/e2e/actions/actions.go +++ b/e2e/actions/actions.go @@ -910,7 +910,7 @@ func (c actionTests) PersistentOverlayAll(t *testing.T) { for _, tt := range tests { var args []string - if e2e.UserNamespaceProfile.String() == "User" && tt.fakeroot { + if (profile.String() == "User" || profile.String() == "UserNamespace") && tt.fakeroot { args = append(args, "--fakeroot") } newArgs := replaceTemplate(overlayDir, squashDir, ext3Dir, sandboxDir, tt.argv)