osbuild-composer/SOURCES/1006-Increase-default-boot-size-to-1GB.patch
2025-05-23 16:21:14 +03:00

37 lines
1.3 KiB
Diff

From 449f4a3f52e0e917397598c698d8f9e4bfc1df1c Mon Sep 17 00:00:00 2001
From: Darren Archibald <darren.archibald@oracle.com>
Date: Wed, 29 Jan 2025 04:58:46 -0800
Subject: [PATCH] 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.31.1