From: Harshal Patil <harshalp(a)linux.vnet.ibm.com>
This patch sets the cdrom as the first boot device
on s390x arch
Signed-off-by: Harshal Patil <harshalp(a)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
Show replies by date
Applied to next branch. Thanks.
Regards,
Aline Manera