
The check removed here came in with I4481b43e4a8fe4144be9c7eb9d9c618bbb2df21e a long time ago. At that time we were not building EFI images, and were building i386 images; both of which are now untrue. We can simplify this now by merging it into the gpt/mbr path. If we are in there we know that we should set --target=i386-pc for BIOS boot. For sanity check that we are x86 in this path -- PPC is handled separately (although it's probably bit-rotted) and ARM64 is EFI. Change-Id: Ie9839c9adc642b0dd688bced3faa46e9314e9799 Co-Authored-By: Clark Boylan <clark.boylan@gmail.com>
bootloader
Installs grub[2]
on boot partition on the system.
Arguments
DIB_GRUB_TIMEOUT
sets thegrub
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 theGRUB_CMDLINE_LINUX_DEFAULT
values ingrub.cfg
configuration. It defaults tonofb nomodeset gfxpayload=text
.DIB_BOOTLOADER_SERIAL_CONSOLE
sets the serial device to be used as a console. It defaults tohvc0
for PowerPC,ttyAMA0,115200
for ARM64, otherwisettyS0,115200
.