9987d0911a
The bootloader element installs the grub bootloader for whole-disk images, but it also correctly sets values in /etc/default/grub and BLS entries. This value setting is useful even if the bootloader isn't installed. For example, the overcloud-full partition image benefits from a correct /etc/default/grub and BLS entries which ironic-python-agent will use when it installs grub on the disk during baremetal deploy. This change moves the actual grub install to the end of the script, and if there is no $DIB_BLOCK_DEVICE set then install is skipped. This allows overcloud-full to use the bootloader element instead of the grub2 element, so the correct grub defaults are set on centos9, including the correct root device on centos9. Change-Id: I8cb34914bbbfa05521bbb71cc6637368b980358f |
||
---|---|---|
.. | ||
block_device | ||
elements | ||
lib | ||
tests | ||
__init__.py | ||
disk_image_create.py | ||
element_dependencies.py | ||
logging_config.py | ||
paths.py | ||
version.py |