Skip to content

Commit f3cbd68

Browse files
authored
Merge pull request #3440 from AkihiroSuda/fix-legacyBIOS
ResolveVMType: ignore legacyBIOS on non-Intel
2 parents 29c8dde + a6dde39 commit f3cbd68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/limayaml/defaults.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1165,8 +1165,8 @@ func ResolveVMType(y, d, o *LimaYAML, filePath string) VMType {
11651165
logrus.Debugf("ResolveVMType: resolved VMType %q (non-native arch=%q is specified in []*LimaYAML{o,y,d}[%d])", QEMU, *f.Arch, i)
11661166
return QEMU
11671167
}
1168-
if f.Firmware.LegacyBIOS != nil && *f.Firmware.LegacyBIOS {
1169-
logrus.Debugf("ResolveVMType: resolved VMType %q (firmware.legacyBIOS is specified in []*LimaYAML{o,y,d}[%d])", QEMU, i)
1168+
if ResolveArch(f.Arch) == X8664 && f.Firmware.LegacyBIOS != nil && *f.Firmware.LegacyBIOS {
1169+
logrus.Debugf("ResolveVMType: resolved VMType %q (firmware.legacyBIOS is specified in []*LimaYAML{o,y,d}[%d], on x86_64)", QEMU, i)
11701170
return QEMU
11711171
}
11721172
if f.MountType != nil && *f.MountType == NINEP {

0 commit comments

Comments
 (0)