I completed LFS 9.0 sysvinit version up to chapter 7 then started over with LFS 9.0 systemd version. Host is Arch 2019.05 in a VM. I'm doing this strictly for learning purposes.
Although I understand the concept this is the first time I've dealt directly with bootloaders so if I misunderstand something below please feel free to correct me.
Section 2.4 states:
Quote:
If the boot disk has been partitioned with a GUID Partition Table (GPT), then a small, typically 1 MB, partition must be created if it does not already exist. This partition is not formatted, but must be available for GRUB to use during installation of the boot loader.
|
and then
Quote:
The Grub Bios partition must be on the drive that the BIOS uses to boot the system. This is not necessarily the same drive where the LFS root partition is located. Disks on a system may use different partition table types. The requirement for this partition depends only on the partition table type of the boot disk.
|
This implied to me that if we do not use a GPT partition then we don't need to bother with GRUB.
Meanwhile section 6.60 installs GRUB and then 8.4 is all about using GRUB to set up the boot process. It does state using GRUB is optional but then states the fallback is to use GRUB-Legacy or GRUB2 -- ?? We installed GRUB2 in 6.60 so 8.4 presumably is configuring GRUB2 so I don't see how it is a fallback option if we want to skip 8.4. The only realistic alternative to GRUB2 (that I'm aware of) is GRUB Legacy (isn't LILO very old?) and it isn't clear if both versions of GRUB would require that partition or not. (I would assume so)
I also see this article which basically says GRUB doesn't naturally run on a GPT partition so it takes some adjustments.
http://www.wensley.org.uk/gpt
In my case I initially selected dos as the partition type to avoid dealing with the GPT GRUB dependency. This was because I was focusing on the simplest possible way to get to a bootable LFS. But since I now see it referenced later on I'm not sure if this is shooting myself in the foot. The decision to go with the dos partition type was based on reading some articles online about Linux partitioning and was made when I first started down the LFS journey, so I may have misunderstood a few things when I made that decision.
I'm only up to chapter 4 on this round so I'm completely fine with starting over (for the *sixth time*) and creating the partition using a GPT since the steps to this point aren't very time consuming.
I just want to know if going back to repartition to a GPT is what I should do, or if pressing forward with the dos partition will cause me any issues later on.
Thanks!