Creating GPT BIOS partition with FAI 4.0.6

Thomas Neumann blacky+fai at fluffbunny.de
Tue Mar 19 19:43:00 CET 2013


On Tuesday, March 19, 2013 07:16:38 PM andrew bezella wrote:
> On Tue, 2013-03-19 at 10:59 -0700, Bob Apodaca wrote:
>> disk_config disk1 disklabel:gpt bootable:1 fstabkey:uuid
 
> unless this has changed in fai4, you would want to use
> "disklabel:gpt-bios" instead of "gpt."  the necessary bios_grub
> partition should then be created automatically.

Yes this works. (But I don't like how it works.)

setup-storage will create a new partition and mark it and the location of this 
'boot'-partition is at the beginning of the disk, but the partition index is 
the next after the last defined partition, e.g.:

disk_config disk1 disklabel:gpt-bios
primary     /           200M      ext3  rw,errors=panic
primary     -           400M      swap  -

will result in

1) sda3 - biosboot
2) sda1 - /
3) sda2 - swap

Yes this is mostly a cosmetical issue. I can understand why it has been done 
this way. Still don't like 'out of order' partitioning. There's a workaround 
to achieve 'ordered' partitions.

disk_config disk1 disklabel:gpt
primary     -           1M        -     -
primary     /           200M      ext3  rw,errors=panic
primary     -           400M      swap  -

However you _must_ set the required flag manually after the partitioning has 
been done and before grub is being installed.

@Bob:

The reason why 'primary - 8  bios_grub' does not work is that setup-storage 
only provides 'filesystem creation'- and 'filesystem mount'-options. But this 
is not a filesystem issue. The required flag belongs to the partition layer.

bye
thomas


More information about the linux-fai mailing list