From d415d57f95c00e7616fb9ff1d39f01456ee5afee Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Tue, 9 Nov 2021 15:44:29 +0000 Subject: [PATCH] disk: create{Partition -> Filesystem} What this function is actually doing is to create a filesystem, together with a new partition; for LVM that filesystem could also be created on a new logical volume though. --- internal/disk/customizations.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/disk/customizations.go b/internal/disk/customizations.go index 100ff5fee..97e4d21b0 100644 --- a/internal/disk/customizations.go +++ b/internal/disk/customizations.go @@ -40,7 +40,7 @@ func CreatePartitionTable( for _, m := range mountpoints { if m.Mountpoint != "/" { partitionSize := m.MinSize / sectorSize - basePartitionTable.createPartition(m.Mountpoint, partitionSize, rng) + basePartitionTable.createFilesystem(m.Mountpoint, partitionSize, rng) } } @@ -63,7 +63,7 @@ func CreatePartitionTable( return basePartitionTable } -func (pt *PartitionTable) createPartition(mountpoint string, size uint64, rng *rand.Rand) { +func (pt *PartitionTable) createFilesystem(mountpoint string, size uint64, rng *rand.Rand) { filesystem := Filesystem{ Type: "xfs", UUID: uuid.Must(newRandomUUIDFromReader(rng)).String(),