diskimage-builder/diskimage_builder/elements/block-device-efi-4k
Julia Kreger 2df6d9b914 4k Block device support
Adds support for the block device size to be asserted for the purpose of
writing out new images, which may be critical for operators with hardware
which requires logical blocks which are 4096 bytes long.

Change-Id: I5c16a042eacfbb94a905b93a0eb9fbc73de0a890
2024-08-30 13:30:27 -07:00
..
environment.d 4k Block device support 2024-08-30 13:30:27 -07:00
block-device-default.yaml 4k Block device support 2024-08-30 13:30:27 -07:00
element-provides 4k Block device support 2024-08-30 13:30:27 -07:00
README.rst 4k Block device support 2024-08-30 13:30:27 -07:00

Block Device EFI

This provides a block-device configuration for the vm element to get a single-partition disk suitable for EFI booting on a block device which uses a native 4KiB sector size. This is important because GPT partitioning relies on sector boundry placement and the GPT disk partition table always starts on the second sector of the disk.

Note on x86 this provides the extra BIOS boot partition and a EFI boot partition for maximum compatability.

This element requires mkfs.vfat command to be available on the build system, usually included in the dosfstools OS package.

Furthermore, the sector size created by this element will not be compatible with devices using 512 byte sectors.