#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
"""
UEFI firmware backend for pybootmgmt (only 64-bit UEFI is supported)
"""
"""Provide an implementation for the SystemFirmware interface for 64-bit
UEFI firmware.
"""
"""Set property values.
"""
return
"""Sets the UEFI Boot device via libdevinfo. The value passed here
MUST be the EFI System Partition, otherwise the resulting entry will
not be correct.
"""
else:
efisys_devs = []
try:
except BootmgmtError as bme:
retval))
raise BootmgmtPropertyWriteError('Error updating UEFI boot '
elif retval != 0:
raise BootmgmtPropertyWriteError('Unknown error while updating '
'UEFI boot options: error code %d' % retval)
def firmware_backend():
"""Entry point for factory to call in and get a SystemFirmware instance.
"""
return UEFI64Firmware