Message ID | 20100519092036.13721.59023.stgit@dhcp-91-25.nay.redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/client/tests/kvm/kvm_vm.py b/client/tests/kvm/kvm_vm.py index c203e14..2515859 100755 --- a/client/tests/kvm/kvm_vm.py +++ b/client/tests/kvm/kvm_vm.py @@ -288,6 +288,16 @@ class VM: tftp = kvm_utils.get_path(root_dir, tftp) qemu_cmd += " -tftp %s" % tftp + kernel = params.get("kernel") + if kernel: + kernel = kvm_utils.get_path(root_dir, kernel) + qemu_cmd += " -kernel %s" % kernel + + initrd = params.get("initrd") + if initrd: + initrd = kvm_utils.get_path(root_dir, initrd) + qemu_cmd += " -initrd %s" % initrd + extra_params = params.get("extra_params") if extra_params: qemu_cmd += " %s" % extra_params