diskimage-builder/diskimage_builder/elements/bootloader
Steve Baker f118649738 Fix BLS entries for /boot partitions
Creating a separate /boot partition is desirable in some cases[1].
This change detects if /boot is a partition, and ensures that the
kernel/ramdisk paths are correct in either case. This is applied to
all BLS entries files, whether they were generated by the previous
grub2-mkconfig call or in the source image.

This means the rhel9 specific workaround can be removed since all
paths are now normalised at this stage.

[1] https://review.opendev.org/c/openstack/tripleo-image-elements/+/846807

Change-Id: I62120ec8c65876e451532d2654d37435eb3606a6
Resolves: rhbz#2101514
2022-06-28 02:41:21 +00:00
..
environment.d update grub cmdline to current kernel parameters 2020-06-14 00:39:42 -05:00
finalise.d Fix BLS entries for /boot partitions 2022-06-28 02:41:21 +00:00
README.rst bootloader: remove extlinux/syslinux path 2021-05-13 10:33:06 +10:00
pkg-map RHEL/Centos 9 does not have package grub2-efi-x64-modules 2021-09-13 09:32:53 +12:00

README.rst

bootloader

Installs grub[2] on boot partition on the system.

Arguments

  • DIB_GRUB_TIMEOUT sets the grub menu timeout. It defaults to 5 seconds. Set this to 0 (no timeout) for fast boot times.
  • DIB_BOOTLOADER_DEFAULT_CMDLINE sets parameters that are appended to the GRUB_CMDLINE_LINUX_DEFAULT values in grub.cfg configuration. It defaults to nofb nomodeset gfxpayload=text.
  • DIB_BOOTLOADER_SERIAL_CONSOLE sets the serial device to be used as a console. It defaults to hvc0 for PowerPC, ttyAMA0,115200 for ARM64, otherwise ttyS0,115200.