rhel86: specify a minimum root file system size

Specify a size for the root filesystem in the partition table,
which basically equates to a minimum size. In reality all image
types specify a larger image size and thus we enlarge the root
file system to more than the specified size for plain layouts.
But if we auto-convert an partition layout to LVM we need a size
for the root partition.
Does not change any existing manifests.
This does not apply for ostree based systems like the simplified
installer.
This commit is contained in:
Christian Kellner 2022-02-28 19:37:35 +01:00 committed by Achilleas Koutsou
parent ddc0126a36
commit e921b7aadd

View file

@ -30,6 +30,7 @@ var defaultBasePartitionTables = distro.BasePartitionTableMap{
},
},
{
Size: 2 * 1024 * 1024 * 1024, // 2 GiB
Type: disk.FilesystemDataGUID,
UUID: disk.RootPartitionUUID,
Payload: &disk.Filesystem{
@ -61,6 +62,7 @@ var defaultBasePartitionTables = distro.BasePartitionTableMap{
},
},
{
Size: 2 * 1024 * 1024 * 1024, // 2 GiB
Type: disk.FilesystemDataGUID,
UUID: disk.RootPartitionUUID,
Payload: &disk.Filesystem{
@ -84,6 +86,7 @@ var defaultBasePartitionTables = distro.BasePartitionTableMap{
Bootable: true,
},
{
Size: 2 * 1024 * 1024 * 1024, // 2 GiB
Payload: &disk.Filesystem{
Type: "xfs",
Mountpoint: "/",
@ -99,6 +102,7 @@ var defaultBasePartitionTables = distro.BasePartitionTableMap{
Type: "dos",
Partitions: []disk.Partition{
{
Size: 2 * 1024 * 1024 * 1024, // 2 GiB
Bootable: true,
Payload: &disk.Filesystem{
Type: "xfs",
@ -124,6 +128,7 @@ var ec2BasePartitionTables = distro.BasePartitionTableMap{
UUID: disk.BIOSBootPartitionUUID,
},
{
Size: 2 * 1024 * 1024 * 1024, // 2 GiB
Type: disk.FilesystemDataGUID,
UUID: disk.RootPartitionUUID,
Payload: &disk.Filesystem{
@ -167,6 +172,7 @@ var ec2BasePartitionTables = distro.BasePartitionTableMap{
},
},
{
Size: 2 * 1024 * 1024 * 1024, // 2 GiB
Type: disk.FilesystemDataGUID,
UUID: disk.RootPartitionUUID,
Payload: &disk.Filesystem{
@ -221,6 +227,7 @@ var edgeBasePartitionTables = distro.BasePartitionTableMap{
},
},
{
Size: 2 * 1024 * 1024 * 1024, // 2 GiB
Type: disk.FilesystemDataGUID,
UUID: disk.RootPartitionUUID,
Payload: &disk.Filesystem{
@ -266,6 +273,7 @@ var edgeBasePartitionTables = distro.BasePartitionTableMap{
},
},
{
Size: 2 * 1024 * 1024 * 1024, // 2 GiB
Type: disk.FilesystemDataGUID,
UUID: disk.RootPartitionUUID,
Payload: &disk.Filesystem{