mirror of
				https://github.com/containers/podman.git
				synced 2025-10-31 10:00:01 +08:00 
			
		
		
		
	 c728eeb39e
			
		
	
	c728eeb39e
	
	
	
		
			
			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
 | |
| }
 |