diff options
author | Ilya Etingof <etingof@gmail.com> | 2018-11-26 19:48:07 +0100 |
---|---|---|
committer | Ilya Etingof <etingof@gmail.com> | 2019-01-23 09:46:01 +0100 |
commit | 738d4eafdc371220b59a48cab9b981e7c3da86cf (patch) | |
tree | 67bd4decd4a66421e1bb8b0b3c4276f05772b064 /ironic/conf/default.py | |
parent | 53823d7f9376cedb9fe794bc46aa69275157448a (diff) | |
download | ironic-738d4eafdc371220b59a48cab9b981e7c3da86cf.tar.gz |
Build ISO out of EFI system partition image
When ironic builds UEFI-bootable ISO image, it extracts
EFI system partition image (`efiboot.img`) from the
`deploy_iso` ISO image.
This change allows supplying EFI system partition image to
the ISO image building routines in form of a local file or
UUID or URI reference.
The motivation behind this change is to make UEFI-bootable image
building process more efficient and functional. This change is
thought of as a prerequisite for the upcoming Redfish-based
virtual media boot feature.
Story: 1526753
Task: 28098
Change-Id: Idf912ff2146434b666fdb4250dc1ecad39bc5a04
Diffstat (limited to 'ironic/conf/default.py')
-rw-r--r-- | ironic/conf/default.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ironic/conf/default.py b/ironic/conf/default.py index 46d1394b7..ea9ce7c50 100644 --- a/ironic/conf/default.py +++ b/ironic/conf/default.py @@ -210,6 +210,10 @@ image_opts = [ default=os.path.join('$pybasedir', 'common/isolinux_config.template'), help=_('Template file for isolinux configuration file.')), + cfg.StrOpt('grub_config_path', + default='/boot/grub/grub.cfg', + help=_('GRUB2 configuration file location on the UEFI ISO ' + 'images produced by ironic.')), cfg.StrOpt('grub_config_template', default=os.path.join('$pybasedir', 'common/grub_conf.template'), @@ -220,6 +224,17 @@ image_opts = [ 'looked for in ' '"/usr/lib/syslinux/modules/bios/ldlinux.c32" and ' '"/usr/share/syslinux/ldlinux.c32".')), + cfg.StrOpt('esp_image', + help=_('Path to EFI System Partition image file. This file is ' + 'recommended for creating UEFI bootable ISO images ' + 'efficiently. ESP image should contain a ' + 'FAT12/16/32-formatted file system holding EFI boot ' + 'loaders (e.g. GRUB2) for each hardware architecture ' + 'ironic needs to boot. If not configured, ironic ' + 'will attempt to fetch ESP image from some remote ' + 'store (if configured) or extract ESP image from ' + 'UEFI-bootable deploy ISO image.')), + ] img_cache_opts = [ |