mirror of https://github.com/containers/podman.git
Merge pull request #21297 from rhatdan/apple
Label host volume mounted content in machine as nfs_t
This commit is contained in:
commit
e37752d5a6
|
@ -1149,6 +1149,7 @@ func generateSystemDFilesForVirtiofsMounts(mounts []machine.VirtIoFs) []ignition
|
||||||
mountUnit.Add("Mount", "What", "%s")
|
mountUnit.Add("Mount", "What", "%s")
|
||||||
mountUnit.Add("Mount", "Where", "%s")
|
mountUnit.Add("Mount", "Where", "%s")
|
||||||
mountUnit.Add("Mount", "Type", "virtiofs")
|
mountUnit.Add("Mount", "Type", "virtiofs")
|
||||||
|
mountUnit.Add("Mount", "Option", "defcontext=\"system_u:object_r:nfs_t:s0\"")
|
||||||
mountUnit.Add("Install", "WantedBy", "multi-user.target")
|
mountUnit.Add("Install", "WantedBy", "multi-user.target")
|
||||||
mountUnitFile, err := mountUnit.ToString()
|
mountUnitFile, err := mountUnit.ToString()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue