Skip to content

Commit

Permalink
disk: add new disk.DosFat16B constant
Browse files Browse the repository at this point in the history
This constant is used for the DOS partition table EFI system
partition. So far it was just a hardcoded string but this will be
used by the otk partition externals too so let's extract it into
a constant.
  • Loading branch information
mvo5 authored and achilleas-k committed Sep 16, 2024
1 parent fa40f2d commit b1e7fee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions pkg/disk/disk.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ const (

// Extended Boot Loader Partition
XBootLDRPartitionGUID = "BC13C2FF-59E6-4262-A352-B275FD6F7172"

// DosFat16B used for the ESP-System partition
DosFat16B = "06"
)

// Entity is the base interface for all disk-related entities.
Expand Down
4 changes: 2 additions & 2 deletions pkg/distro/fedora/partition_tables.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ var minimalrawPartitionTables = distro.BasePartitionTableMap{
Partitions: []disk.Partition{
{
Size: 200 * common.MebiByte,
Type: "06",
Type: disk.DosFat16B,
Bootable: true,
Payload: &disk.Filesystem{
Type: "vfat",
Expand Down Expand Up @@ -319,7 +319,7 @@ var iotBasePartitionTables = distro.BasePartitionTableMap{
Partitions: []disk.Partition{
{
Size: 501 * common.MebiByte,
Type: "06",
Type: disk.DosFat16B,
Bootable: true,
Payload: &disk.Filesystem{
Type: "vfat",
Expand Down

0 comments on commit b1e7fee

Please sign in to comment.