From c6b2d3009b70e82e237bd2f968cb05d9c8fe3805 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Tue, 24 Aug 2021 21:14:10 +0000 Subject: [PATCH] distro/rhel85: partition table for edge + aarch64 Define the partition layout for RHEL for Edge images on arm64. --- internal/distro/rhel85/partition_tables.go | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/internal/distro/rhel85/partition_tables.go b/internal/distro/rhel85/partition_tables.go index 14bfe9cf9..3546d114e 100644 --- a/internal/distro/rhel85/partition_tables.go +++ b/internal/distro/rhel85/partition_tables.go @@ -234,4 +234,49 @@ var edgeBasePartitionTables = distro.BasePartitionTableMap{ }, }, }, + distro.Aarch64ArchName: disk.PartitionTable{ + UUID: "D209C89E-EA5E-4FBD-B161-B461CCE297E0", + Type: "gpt", + Partitions: []disk.Partition{ + { + Size: 260096, // 127 MB + Type: disk.EFISystemPartitionGUID, + UUID: disk.EFISystemPartitionUUID, + Filesystem: &disk.Filesystem{ + Type: "vfat", + UUID: disk.EFIFilesystemUUID, + Mountpoint: "/boot/efi", + Label: "EFI-SYSTEM", + FSTabOptions: "defaults,uid=0,gid=0,umask=077,shortname=winnt", + FSTabFreq: 0, + FSTabPassNo: 2, + }, + }, + { + Size: 786432, // 384 MB + Type: disk.FilesystemDataGUID, + UUID: disk.FilesystemDataUUID, + Filesystem: &disk.Filesystem{ + Type: "xfs", + Mountpoint: "/boot", + Label: "boot", + FSTabOptions: "defaults", + FSTabFreq: 1, + FSTabPassNo: 1, + }, + }, + { + Type: disk.FilesystemDataGUID, + UUID: disk.RootPartitionUUID, + Filesystem: &disk.Filesystem{ + Type: "xfs", + Label: "root", + Mountpoint: "/", + FSTabOptions: "defaults", + FSTabFreq: 0, + FSTabPassNo: 0, + }, + }, + }, + }, }