diff --git a/pkg/machine/e2e/init_test.go b/pkg/machine/e2e/init_test.go index 0e638ba0da..5f0d128c9d 100644 --- a/pkg/machine/e2e/init_test.go +++ b/pkg/machine/e2e/init_test.go @@ -174,10 +174,6 @@ var _ = Describe("podman machine init", func() { }) It("machine init rootless docker.sock check", func() { - if testProvider.VMType() == machine.HyperVVirt { - //https://github.com/containers/podman/issues/20092 - Skip("rootless is broken with hyperv") - } i := initMachine{} name := randomString() session, err := mb.setName(name).setCmd(i.withImagePath(mb.imagePath)).run() diff --git a/pkg/machine/hyperv/machine.go b/pkg/machine/hyperv/machine.go index 1f9f528e1c..93298a9094 100644 --- a/pkg/machine/hyperv/machine.go +++ b/pkg/machine/hyperv/machine.go @@ -95,6 +95,7 @@ func (m *HyperVMachine) writeIgnitionConfigFile(opts machine.InitOptions, user, TimeZone: opts.TimeZone, WritePath: m.IgnitionFile.GetPath(), UID: m.UID, + Rootful: m.Rootful, } if err := ign.GenerateIgnitionConfig(); err != nil { @@ -243,6 +244,7 @@ func (m *HyperVMachine) Init(opts machine.InitOptions) (bool, error) { DiskSize: opts.DiskSize, Memory: opts.Memory, } + m.Rootful = opts.Rootful // If the user provides an ignition file, we need to // copy it into the conf dir