Skip to content

Commit c44506b

Browse files
yadvrdhslove
authored andcommitted
kvm: fix regression 5a52ca7 (apache#11342)
Somehow the commit 5a52ca7 was reverted so cloud-init templates don't work on arm64 anymore :( Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent 4f703d5 commit c44506b

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

  • plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource

plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/LibvirtVMDef.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,9 +277,7 @@ public String toString() {
277277
guestDef.append("<boot dev='" + bo + "'/>\n");
278278
}
279279
}
280-
if (_arch == null || ! (_arch.equals("aarch64") || _arch.equals("s390x"))) { // simplification of (as ref.) (!(_arch != null && _arch.equals("s390x")) || (_arch == null || !_arch.equals("aarch64")))
281-
guestDef.append("<smbios mode='sysinfo'/>\n");
282-
}
280+
guestDef.append("<smbios mode='sysinfo'/>\n");
283281
guestDef.append("</os>\n");
284282
if (iothreads) {
285283
guestDef.append(String.format("<iothreads>%s</iothreads>", NUMBER_OF_IOTHREADS));

0 commit comments

Comments
 (0)