- options = []
- if self.is_qemu():
- options.append('serial')
- options.append('no-hangcheck')
- options.append('systemd-debug')
- encoded = self.test_plc.apiserver.GetBootMedium(self.test_plc.auth_root(),
- self.name(), 'node-iso', '', options)
- if (encoded == ''):
- raise Exception, 'GetBootmedium failed'
+ # this would clearly belong in the config but, well ..
+ options = self.node_spec['bootmedium_options'] if 'bootmedium_options' in self.node_spec else []
+ encoded = self.test_plc.apiserver.GetBootMedium(
+ self.test_plc.auth_root(), self.name(), 'node-iso', '', options)
+ if encoded == '':
+ raise Exception('GetBootmedium failed')