Skip to content

Commit

Permalink
Use blueprint filesystem customizations to create partitions
Browse files Browse the repository at this point in the history
This also allows the root filesystem size to be increased if the default
of 10GiB isn't enough.
  • Loading branch information
bcl authored and mvo5 committed Jun 3, 2024
1 parent 84ba434 commit b6641ae
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bib/cmd/bootc-image-builder/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,12 @@ func manifestForDiskImage(c *ManifestConfig, rng *rand.Rand) (*manifest.Manifest
}
rootFS.Type = c.RootFSType
}
filesystems := customizations.GetFilesystems()
if len(filesystems) == 0 {
filesystems = c.Filesystems
}

pt, err := disk.NewPartitionTable(&basept, c.Filesystems, DEFAULT_SIZE, disk.RawPartitioningMode, nil, rng)
pt, err := disk.NewPartitionTable(&basept, filesystems, DEFAULT_SIZE, disk.RawPartitioningMode, nil, rng)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit b6641ae

Please sign in to comment.