Merge pull request #10125 from ashley-cui/machenabled

[NO TESTS NEEDED] Add machine-enabled to containers.conf for machine
This commit is contained in:
OpenShift Merge Robot 2021-04-26 17:28:12 -04:00 committed by GitHub
commit 258a490fe4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 0 deletions

View File

@ -168,6 +168,22 @@ func getFiles(usrName string) []File {
},
FileEmbedded1: FileEmbedded1{Mode: intToPtr(420)},
})
// Set machine_enabled to true to indicate we're in a VM
files = append(files, File{
Node: Node{
Group: getNodeGrp("root"),
Path: "/etc/containers/containers.conf",
User: getNodeUsr("root"),
},
FileEmbedded1: FileEmbedded1{
Append: nil,
Contents: Resource{
Source: strToPtr("data:,%5Bengine%5D%0Amachine_enabled%3Dtrue%0A"),
},
Mode: intToPtr(420),
},
})
return files
}