Skip to content

Commit

Permalink
wip:add fs customization to map
Browse files Browse the repository at this point in the history
Signed-off-by: Sayan Paul <[email protected]>
  • Loading branch information
say-paul committed Nov 21, 2023
1 parent e4f8bc6 commit 00b7f2c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/disk/partition_table.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 00b7f2c

Please sign in to comment.