Hi,
> And in my opinion, it's not simple to say: OK if you have this size
> ESP to start, you get this layout, and if it's bigger you get this
> other layout, and if it's BIOS you have this 3rd layout.
Well, for fresh installs[1] there is no reason to have efi and bios use
different layouts. You can just do this:
[root@ibm-p8-kvm-03-guest-02 ~]# fdisk -l /dev/sda
Disk /dev/sda: 4 GiB, 4294967296 bytes, 8388608 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 92035660-BEFD-45D5-9883-B2B91EC429D1
Device Start End Sectors Size Type
/dev/sda1 2048 10239 8192 4M BIOS boot
/dev/sda2 10240 1058815 1048576 512M EFI System
/dev/sda3 1058816 2107391 1048576 512M Linux swap
/dev/sda4 2107392 8386560 6279169 3G Linux root (x86-64)
systemd-boot plus bootloader config plus kernels goes to /dev/sda2.
grub2 (bios version, with BLS patches) goes to /dev/sda1. Short,
fixed config snippet instructs grub2 to read the bls config from
/dev/sda2.
That image can be booted in both efi mode and bios mode[2]. And because
they use the very same bls configuration the bios/efi configs can't go
out of sync on kernel updates. Oh, and systemd-nspawn can boot the
image too.
cheers,
Gerd
PS: The idea still works if you add a separate /boot partition, even
though I can't see a compelling reason to do so if you have a fresh
hard drive and can partition it as you like. And you have to use
grub2-efi instead of systemd-boot then.
[1] Dual boot installs obviously have to deal with whatever
mess they find on the harddrive ...
[2] Well, needs some manual editing due to some extra spaces.
https://bugzilla.redhat.com//show_bug.cgi?id=1588184
_______________________________________________
devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/[email protected]/message/QTL4WZ4ZDL7AOVTAHSIFRDLE57BGI5YJ/