From 69c20d525686b8fe2039746b19d26c9b56dcef6c Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Tue, 11 Jun 2019 18:42:54 -0400 Subject: [PATCH] installer: install_{kernel,initrd} imply an install phase --- .../compare/virt-install-kvm-rhel6.xml | 74 +++++++++++++++++++ virtinst/installer.py | 2 + 2 files changed, 76 insertions(+) diff --git a/tests/cli-test-xml/compare/virt-install-kvm-rhel6.xml b/tests/cli-test-xml/compare/virt-install-kvm-rhel6.xml index fa761e5d..45c94ce1 100644 --- a/tests/cli-test-xml/compare/virt-install-kvm-rhel6.xml +++ b/tests/cli-test-xml/compare/virt-install-kvm-rhel6.xml @@ -1,3 +1,77 @@ + + rhel6.4 + 00000000-1111-2222-3333-444444444444 + + + + + + 65536 + 65536 + 2 + + hvm + /TESTSUITE_KERNEL_PATH + /TESTSUITE_INITRD_PATH + + + + + + + + + + + + + destroy + + + + + + /usr/bin/qemu-kvm + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + rhel6.4 00000000-1111-2222-3333-444444444444 diff --git a/virtinst/installer.py b/virtinst/installer.py index 8d7adc14..14ec4f4f 100644 --- a/virtinst/installer.py +++ b/virtinst/installer.py @@ -344,6 +344,8 @@ class Installer(object): return False return bool(self._cdrom or self._install_bootdev or + self._install_kernel or + self._install_initrd or self._treemedia) def detect_distro(self, guest):