Revision 8a74a9b9 lib/hypervisor/hv_kvm.py
b/lib/hypervisor/hv_kvm.py | ||
---|---|---|
218 | 218 |
drive_val = 'file=%s,format=raw%s%s' % (rldev.dev_path, if_val, boot_val) |
219 | 219 |
kvm_cmd.extend(['-drive', drive_val]) |
220 | 220 |
|
221 |
kvm_cmd.extend(['-kernel', instance.hvparams[HV_KERNEL_PATH]]) |
|
222 |
initrd_path = instance.hvparams[HV_INITRD_PATH] |
|
221 |
kvm_cmd.extend(['-kernel', instance.hvparams[constants.HV_KERNEL_PATH]]) |
|
222 |
|
|
223 |
initrd_path = instance.hvparams[constants.HV_INITRD_PATH] |
|
223 | 224 |
if initrd_path: |
224 | 225 |
kvm_cmd.extend(['-initrd', initrd_path]) |
225 | 226 |
|
Also available in: Unified diff