osbuild-composer/1006-Increase-default-boot-size-to-1GB.patch
2025-07-07 14:10:56 +00:00

37 lines
1.3 KiB
Diff

From 9e0328812d5d6a741606b329ad7406ad74563258 Mon Sep 17 00:00:00 2001
From: Josue David Hernandez Gutierrez <josue.d.hernandez@oracle.com>
Date: Wed, 19 Feb 2025 21:45:41 +0000
Subject: [PATCH 6/9] Increase default /boot size to 1GB
Signed-off-by: Josue David Hernandez Gutierrez <josue.d.hernandez@oracle.com>
Signed-off-by: Alex Burmashev <alexander.burmashev@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 1fc4199..eaf97b8 100644
--- a/vendor/github.com/osbuild/images/pkg/disk/partition_table.go
+++ b/vendor/github.com/osbuild/images/pkg/disk/partition_table.go
@@ -634,7 +634,7 @@ func clampFSSize(mountpoint string, size uint64) uint64 {
var minSize uint64 = 1073741824
if mountpoint == "/boot" {
- minSize = 524288000
+ minSize = 1073741824
}
if minSize > size {
@@ -718,7 +718,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*datasizes.MiB)
+ _, err := pt.CreateMountpoint("/boot", 1024*datasizes.MiB)
if err != nil {
return err
--
2.47.1