From 00b7f2c478d25035968a9268b0d2bc349cd8b804 Mon Sep 17 00:00:00 2001 From: Sayan Paul Date: Tue, 21 Nov 2023 15:34:57 +0530 Subject: [PATCH] wip:add fs customization to map Signed-off-by: Sayan Paul --- pkg/disk/partition_table.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/disk/partition_table.go b/pkg/disk/partition_table.go index 819bd6a200..6156b49a5e 100644 --- a/pkg/disk/partition_table.go +++ b/pkg/disk/partition_table.go @@ -82,6 +82,12 @@ func NewPartitionTable(basePT *PartitionTable, mountpoints []blueprint.Filesyste } } + if len(newMountpoints) != 0 { + for _, mp := range newMountpoints { + requiredSizes[mp.Mountpoint] = mp.MinSize + } + } + if len(requiredSizes) != 0 { newPT.EnsureDirectorySizes(requiredSizes) }