37 lines
1.3 KiB
Diff
37 lines
1.3 KiB
Diff
From 99e9259c522d9980dd40be60a7a4ca911b973258 Mon Sep 17 00:00:00 2001
|
|
From: Josue David Hernandez Gutierrez <josue.d.hernandez@oracle.com>
|
|
Date: Thu, 31 Oct 2024 01:14:03 +0000
|
|
Subject: [PATCH 6/8] 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 b49e76d..ac31bc0 100644
|
|
--- a/vendor/github.com/osbuild/images/pkg/disk/partition_table.go
|
|
+++ b/vendor/github.com/osbuild/images/pkg/disk/partition_table.go
|
|
@@ -612,7 +612,7 @@ func clampFSSize(mountpoint string, size uint64) uint64 {
|
|
var minSize uint64 = 1073741824
|
|
|
|
if mountpoint == "/boot" {
|
|
- minSize = 524288000
|
|
+ minSize = 1073741824
|
|
}
|
|
|
|
if minSize > size {
|
|
@@ -696,7 +696,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
|
|
|