mirror of
				https://github.com/containers/podman.git
				synced 2025-11-04 08:56:05 +08:00 
			
		
		
		
	On darwin arm64, we need to set the location of the ovmf vars. It should be put into the imageDir (also known as as dataDir). But because qemu determines the image path late in Init(), the image path is set something like a stream marker. Fixes #20361 [NO NEW TESTS NEEDED] Signed-off-by: Brent Baude <bbaude@redhat.com>
		
			
				
	
	
		
			22 lines
		
	
	
		
			329 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			329 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package qemu
 | 
						|
 | 
						|
var (
 | 
						|
	QemuCommand = "qemu-system-x86_64"
 | 
						|
)
 | 
						|
 | 
						|
func (v *MachineVM) addArchOptions(_ *setNewMachineCMDOpts) []string {
 | 
						|
	opts := []string{
 | 
						|
		"-accel", "kvm",
 | 
						|
		"-cpu", "host",
 | 
						|
	}
 | 
						|
	return opts
 | 
						|
}
 | 
						|
 | 
						|
func (v *MachineVM) prepare() error {
 | 
						|
	return nil
 | 
						|
}
 | 
						|
 | 
						|
func (v *MachineVM) archRemovalFiles() []string {
 | 
						|
	return []string{}
 | 
						|
}
 |