[PATCH V2] Issue #1045 : boot order fix for guest edit

From: Harshal Patil <harshalp@linux.vnet.ibm.com> V1: This patch sets the cdrom as the first boot device on s390x arch V2: Review comments Signed-off-by: Harshal Patil <harshalp@linux.vnet.ibm.com> --- vmtemplate.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vmtemplate.py b/vmtemplate.py index 07cebb9..b71f947 100644 --- a/vmtemplate.py +++ b/vmtemplate.py @@ -392,7 +392,10 @@ class VMTemplate(object): # Set the boot order of VM # TODO: need modify this when boot order edition feature came upstream. - params['boot_order'] = get_bootorder_xml() + if cdrom_xml and params.get('arch') == 's390x': + params['boot_order'] = get_bootorder_xml(['cdrom', 'hd', 'network']) + else: + params['boot_order'] = get_bootorder_xml() # Setting maximum number of memory slots slots = str(self.info['mem_dev_slots']) -- 2.7.4
participants (1)
-
harshalp@linux.vnet.ibm.com