Skip to content

Commit

Permalink
blueprint: fix filesystem minsize toml key
Browse files Browse the repository at this point in the history
The toml tag for customizations.filesystem.minsize was incorrectly set
to size.  In osbuild-composer this was already changed to minsize [1].
The blueprint implementation in this repo is used directly in
bootc-image-builder, so the tags affect how the config is parsed by that
tool.

Our blueprint reference for bootc-image-builder also uses `minsize` [2].
Let's finally unify the config everywhere.

[1] osbuild/osbuild-composer#3783
[2] https://osbuild.org/docs/user-guide/blueprint-reference/#filesystems
  • Loading branch information
achilleas-k authored and kingsleyzissou committed Jul 31, 2024
1 parent 52a88b8 commit ff6bd93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/blueprint/filesystem_customizations.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

type FilesystemCustomization struct {
Mountpoint string `json:"mountpoint,omitempty" toml:"mountpoint,omitempty"`
MinSize uint64 `json:"minsize,omitempty" toml:"size,omitempty"`
MinSize uint64 `json:"minsize,omitempty" toml:"minsize,omitempty"`
}

func (fsc *FilesystemCustomization) UnmarshalTOML(data interface{}) error {
Expand Down

0 comments on commit ff6bd93

Please sign in to comment.