Files
podman/pkg/machine/ignition/ignition_darwin.go
Jake Correnti c728eeb39e Create pkg/machine/ignition package
Moves all of the ignitionfiles out of the `machine` package and into
its own called `ignition`. This required `VMType` to get moved out of
the `machine` package and into the `define` package in order to prevent
a circular dependency.

Signed-off-by: Jake Correnti <jakecorrenti+github@proton.me>
2024-01-04 08:51:35 -05:00

17 lines
262 B
Go

//go:build darwin
package ignition
import (
"os"
"strings"
)
func getLocalTimeZone() (string, error) {
tzPath, err := os.Readlink("/etc/localtime")
if err != nil {
return "", err
}
return strings.TrimPrefix(tzPath, "/var/db/timezone/zoneinfo"), nil
}