Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Commit cb3bd56

Browse files
committed
Fixed XML generated for kernel/initrd installs of KVM
1 parent a1db529 commit cb3bd56

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

virtinst/DistroManager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ def _get_osblob(self, install, hvm, arch = None, loader = None):
692692
else:
693693
osblob += " <type>%s</type>\n" % type
694694

695-
if self.install["kernel"]:
695+
if install and self.install["kernel"]:
696696
osblob += " <kernel>%s</kernel>\n" % self.install["kernel"]
697697
osblob += " <initrd>%s</initrd>\n" % self.install["initrd"]
698698
osblob += " <cmdline>%s</cmdline>\n" % self.install["extraargs"]

0 commit comments

Comments
 (0)