distro/fedora: add iot partition tables
Based on the official images. Converted to GPT (from DOS).
This commit is contained in:
parent
660444fed1
commit
280d27a1c8
1 changed files with 106 additions and 1 deletions
|
|
@ -106,4 +106,109 @@ var defaultBasePartitionTables = distro.BasePartitionTableMap{
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
var iotBasePartitionTables = distro.BasePartitionTableMap{}
|
var iotBasePartitionTables = distro.BasePartitionTableMap{
|
||||||
|
distro.X86_64ArchName: disk.PartitionTable{
|
||||||
|
UUID: "D209C89E-EA5E-4FBD-B161-B461CCE297E0",
|
||||||
|
Type: "gpt",
|
||||||
|
Partitions: []disk.Partition{
|
||||||
|
{
|
||||||
|
Size: 1048576, // 1MB
|
||||||
|
Bootable: true,
|
||||||
|
Type: disk.BIOSBootPartitionGUID,
|
||||||
|
UUID: disk.BIOSBootPartitionUUID,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
Size: 525336576, // 500 MiB
|
||||||
|
Type: disk.EFISystemPartitionGUID,
|
||||||
|
UUID: disk.EFISystemPartitionUUID,
|
||||||
|
Payload: &disk.Filesystem{
|
||||||
|
Type: "vfat",
|
||||||
|
UUID: disk.EFIFilesystemUUID,
|
||||||
|
Mountpoint: "/boot/efi",
|
||||||
|
Label: "EFI-SYSTEM",
|
||||||
|
FSTabOptions: "umask=0077,shortname=winnt",
|
||||||
|
FSTabFreq: 0,
|
||||||
|
FSTabPassNo: 2,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
Size: 1073741824, // 1 GiB
|
||||||
|
Type: disk.FilesystemDataGUID,
|
||||||
|
UUID: disk.FilesystemDataUUID,
|
||||||
|
Payload: &disk.Filesystem{
|
||||||
|
Type: "ext4",
|
||||||
|
Mountpoint: "/boot",
|
||||||
|
Label: "boot",
|
||||||
|
FSTabOptions: "defaults",
|
||||||
|
FSTabFreq: 1,
|
||||||
|
FSTabPassNo: 2,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
Size: 2693791744, // 2.5 GiB
|
||||||
|
Type: disk.FilesystemDataGUID,
|
||||||
|
UUID: disk.RootPartitionUUID,
|
||||||
|
Payload: &disk.Filesystem{
|
||||||
|
Type: "ext4",
|
||||||
|
Label: "root",
|
||||||
|
Mountpoint: "/",
|
||||||
|
FSTabOptions: "defaults",
|
||||||
|
FSTabFreq: 1,
|
||||||
|
FSTabPassNo: 1,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
distro.Aarch64ArchName: disk.PartitionTable{
|
||||||
|
UUID: "D209C89E-EA5E-4FBD-B161-B461CCE297E0",
|
||||||
|
Type: "gpt",
|
||||||
|
Partitions: []disk.Partition{
|
||||||
|
{
|
||||||
|
Size: 1048576, // 1MB
|
||||||
|
Bootable: true,
|
||||||
|
Type: disk.BIOSBootPartitionGUID,
|
||||||
|
UUID: disk.BIOSBootPartitionUUID,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
Size: 525336576, // 500 MiB
|
||||||
|
Type: disk.EFISystemPartitionGUID,
|
||||||
|
UUID: disk.EFISystemPartitionUUID,
|
||||||
|
Payload: &disk.Filesystem{
|
||||||
|
Type: "vfat",
|
||||||
|
UUID: disk.EFIFilesystemUUID,
|
||||||
|
Mountpoint: "/boot/efi",
|
||||||
|
Label: "EFI-SYSTEM",
|
||||||
|
FSTabOptions: "umask=0077,shortname=winnt",
|
||||||
|
FSTabFreq: 0,
|
||||||
|
FSTabPassNo: 2,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
Size: 1073741824, // 1 GiB
|
||||||
|
Type: disk.FilesystemDataGUID,
|
||||||
|
UUID: disk.FilesystemDataUUID,
|
||||||
|
Payload: &disk.Filesystem{
|
||||||
|
Type: "ext4",
|
||||||
|
Mountpoint: "/boot",
|
||||||
|
Label: "boot",
|
||||||
|
FSTabOptions: "defaults",
|
||||||
|
FSTabFreq: 1,
|
||||||
|
FSTabPassNo: 2,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
Size: 2693791744, // 2.5 GiB
|
||||||
|
Type: disk.FilesystemDataGUID,
|
||||||
|
UUID: disk.RootPartitionUUID,
|
||||||
|
Payload: &disk.Filesystem{
|
||||||
|
Type: "ext4",
|
||||||
|
Label: "root",
|
||||||
|
Mountpoint: "/",
|
||||||
|
FSTabOptions: "defaults",
|
||||||
|
FSTabFreq: 1,
|
||||||
|
FSTabPassNo: 1,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue