28 lines
1.2 KiB
Diff
28 lines
1.2 KiB
Diff
|
References: jsc#SLE-6262, fate#327048: KVM: Boot Configuration Override (virt-manager)
|
||
|
|
||
|
Subject: cli: Use reorder_boot_order for setting the boot order
|
||
|
From: Marc Hartmayer mhartmay@linux.ibm.com Tue Feb 26 10:56:39 2019 +0100
|
||
|
Date: Wed Mar 6 13:15:38 2019 -0500:
|
||
|
Git: b83a0a61a0da867048b232054a41c4c98edbb9d8
|
||
|
|
||
|
Use the newly introduced method `reorder_boot_order` for setting
|
||
|
the boot index of a device. This ensures that all other boot order
|
||
|
values of domain guest definition are adjusted accordingly.
|
||
|
|
||
|
Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com>
|
||
|
Reviewed-by: Boris Fiuczynski <fiuczy@linux.ibm.com>
|
||
|
|
||
|
Index: virt-manager-2.1.0/virtinst/cli.py
|
||
|
===================================================================
|
||
|
--- virt-manager-2.1.0.orig/virtinst/cli.py
|
||
|
+++ virt-manager-2.1.0/virtinst/cli.py
|
||
|
@@ -2162,7 +2162,7 @@ def _add_device_boot_order_arg(cls):
|
||
|
if not guest.conn.check_support(support.SUPPORT_CONN_DEVICE_BOOT_ORDER):
|
||
|
raise NotImplementedError('Device boot order isn\'t supported by the connection')
|
||
|
|
||
|
- inst.boot.order = val
|
||
|
+ guest.reorder_boot_order(inst, val)
|
||
|
cls.set_boot_order_cb = set_boot_order_cb
|
||
|
cls.add_arg("boot.order", "boot_order", cb=cls.set_boot_order_cb)
|
||
|
|