DT
Size: a a a
DT
PK
DT
PK
def get_boot_info(self):
boot_mode = 'uefi' if os.path.isdir('/sys/firmware/efi') else 'bios'
LOG.debug('The current boot mode is %s', boot_mode)
pxe_interface = utils.get_agent_params().get('BOOTIF')
return BootInfo(current_boot_mode=boot_mode,
pxe_interface=pxe_interface)
DT
PK
DT
DT
PK
openstack baremetal node set --instance-info image_source=http://10.220.36.25:8080/centos7.qcow2 \
--boot-interface ipxe \
--instance-info image_checksum=$MD5SUM \
--instance-info capabilities='{"boot_option": "local", "boot_mode":"uefi", "secure_boot": "true"}' \
--property capabilities='boot_mode:uefi' \
3535be75-da4b-4201-bf00-aeeb34f236a5
openstack baremetal node deploy 3535be75-da4b-4201-bf00-aeeb34f236a5 --config-drive '{"meta_data": {"hostname": "server1.cluster"}}'
PK
DT
DT
PK
PK
DT
PK
PK
DT
PK
PK