forked from rpms/osbuild-composer
38 lines
1.3 KiB
Diff
38 lines
1.3 KiB
Diff
From c6f17987b7d03a43ac19073fdcfa3dd879d0deb2 Mon Sep 17 00:00:00 2001
|
|
From: Alex Burmashev <alexander.burmashev@oracle.com>
|
|
Date: Thu, 25 Jul 2024 12:02:46 +0000
|
|
Subject: [PATCH] Increase default /boot size to 1GB
|
|
|
|
Orabug: 36827079
|
|
|
|
Signed-off-by: Alex Burmashev <alexander.burmashev@oracle.com>
|
|
Reviewed-by: Laurence Rochfort <laurence.rochfort@oracle.com>
|
|
---
|
|
vendor/github.com/osbuild/images/pkg/disk/partition_table.go | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/vendor/github.com/osbuild/images/pkg/disk/partition_table.go b/vendor/github.com/osbuild/images/pkg/disk/partition_table.go
|
|
index df7154c..d8e61fd 100644
|
|
--- a/vendor/github.com/osbuild/images/pkg/disk/partition_table.go
|
|
+++ b/vendor/github.com/osbuild/images/pkg/disk/partition_table.go
|
|
@@ -547,7 +547,7 @@ func clampFSSize(mountpoint string, size uint64) uint64 {
|
|
var minSize uint64 = 1073741824
|
|
|
|
if mountpoint == "/boot" {
|
|
- minSize = 524288000
|
|
+ minSize = 1073741824
|
|
}
|
|
|
|
if minSize > size {
|
|
@@ -631,7 +631,7 @@ func (pt *PartitionTable) ensureLVM() error {
|
|
// we need a /boot partition to boot LVM, ensure one exists
|
|
bootPath := entityPath(pt, "/boot")
|
|
if bootPath == nil {
|
|
- _, err := pt.CreateMountpoint("/boot", 512*common.MiB)
|
|
+ _, err := pt.CreateMountpoint("/boot", 1024*common.MiB)
|
|
|
|
if err != nil {
|
|
return err
|
|
--
|
|
2.43.5
|