mirror of
https://github.com/containers/podman.git
synced 2025-11-01 10:45:52 +08:00
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>
17 lines
262 B
Go
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
|
|
}
|