mirror of
https://github.com/containers/podman.git
synced 2025-11-02 14:55:28 +08:00
Podman 5 machine refactor - applehv
this is the second provider done (qemu first). all tests pass on arm64 hardware locally ... the hybrid pull from oci registries limit this to arm64 only. calling gvproxy, waiting for it, and then vfkit seems to still be problematic. this would be an area that should be cleaned up once all providers are implemented. Signed-off-by: Brent Baude <bbaude@redhat.com>
This commit is contained in:
@ -9,6 +9,7 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/containers/podman/v4/pkg/machine/define"
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
// SetSocket creates a new machine file for the socket and assigns it to
|
||||
@ -33,10 +34,12 @@ func ReadySocketPath(runtimeDir, machineName string) string {
|
||||
func ListenAndWaitOnSocket(errChan chan<- error, listener net.Listener) {
|
||||
conn, err := listener.Accept()
|
||||
if err != nil {
|
||||
logrus.Debug("failed to connect to ready socket")
|
||||
errChan <- err
|
||||
return
|
||||
}
|
||||
_, err = bufio.NewReader(conn).ReadString('\n')
|
||||
logrus.Debug("ready ack received")
|
||||
|
||||
if closeErr := conn.Close(); closeErr != nil {
|
||||
errChan <- closeErr
|
||||
|
||||
Reference in New Issue
Block a user