pass on bootindex (if set) to ide drives hooked up via ahci.

Signed-off-by: Gerd Hoffmann <kra...@redhat.com>
---
 client/virt/kvm_vm.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/client/virt/kvm_vm.py b/client/virt/kvm_vm.py
index cf7fc73..d346876 100644
--- a/client/virt/kvm_vm.py
+++ b/client/virt/kvm_vm.py
@@ -445,6 +445,7 @@ class VM(virt_vm.BaseVM):
             if format == "ahci":
                 name = "ahci%s" % index
                 dev += " -device ide-drive,bus=ahci.%s,drive=%s" % (index, 
name)
+                dev += _add_option("bootindex", bootindex)
                 format = "none"
                 index = None
             if format == "virtio":
-- 
1.7.1

_______________________________________________
Autotest mailing list
Autotest@test.kernel.org
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to