Specifying the boot partition filesystem UUID in grub2 stage is required in case the `/boot` mountpoint is on a separate partition. This is the case of RHEL-8.5 and RHEL-9.0 `ami` and `ec2` images. Extend `disk.PartitionTable` with a new `BootPartition` method, which returns a pointer to partition with FS mountpoint `/boot` if there is such partition, or `nil` otherwise. Extend the RHEL-8.5 and RHEL-9.0 code creating options structure for grub2 osbuild stage to include the boot partition in case it has been provided. Signed-off-by: Tomas Hozza <thozza@redhat.com> |
||
|---|---|---|
| .. | ||
| disk.go | ||