Skip to content

Commit

Permalink
Merge pull request #22758 from slp/rosetta-libkrun-fix
Browse files Browse the repository at this point in the history
Check AppleHypervisor before accessing it
  • Loading branch information
openshift-merge-bot[bot] committed May 21, 2024
2 parents c8dc5c7 + 3ab9e86 commit 3d48d9b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/machine/apple/vfkit.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ func GetDefaultDevices(mc *vmconfigs.MachineConfig) ([]vfConfig.VirtioDevice, *d
}
devices = append(devices, disk, rng, serial, readyDevice)

rosettaCfg := mc.AppleHypervisor.Vfkit.Rosetta
if rosettaCfg {
if mc.AppleHypervisor != nil && mc.AppleHypervisor.Vfkit.Rosetta {
rosetta := &vfConfig.RosettaShare{
DirectorySharingConfig: vfConfig.DirectorySharingConfig{
MountTag: define.MountTag,
Expand Down

1 comment on commit 3d48d9b

@packit-as-a-service
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

podman-next COPR build failed. @containers/packit-build please check.

Please sign in to comment.