Skip to content

Commit

Permalink
vz: Warn on rosetta setup if it fails
Browse files Browse the repository at this point in the history
Signed-off-by: Chance Zibolski <chance.zibolski@gmail.com>
  • Loading branch information
chancez committed Nov 22, 2022
1 parent 7638316 commit 6bb3078
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/vz/vm_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -349,10 +349,8 @@ func attachFolderMounts(driver *driver.BaseDriver, vmConfig *vz.VirtualMachineCo
if driver.Yaml.Rosetta.Enabled {
logrus.Info("Setting up Rosetta share")
directorySharingDeviceConfig, err := createRosettaDirectoryShareConfiguration()
if errors.Is(err, errRosettaUnsupported) {
if err != nil {
logrus.Warnf("Unable to configure Rosetta: %s", err)
} else if err != nil {
return err
} else {
mounts = append(mounts, directorySharingDeviceConfig)
}
Expand Down

0 comments on commit 6bb3078

Please sign in to comment.