pkg/disk: add XFS agcount option in disk.yaml#2496
Conversation
achilleas-k
left a comment
There was a problem hiding this comment.
Thanks for the PR. Small change request for the configuration structure for consistency.
| type MkfsOptions struct { | ||
| Verity bool `json:"verity,omitempty" yaml:"verity,omitempty"` | ||
| Geometry *MkfsOptionGeometry `json:"geometry,omitempty" yaml:"geometry,omitempty"` | ||
| XFS *MkfsOptionXFS `json:"xfs,omitempty" yaml:"xfs,omitempty"` |
There was a problem hiding this comment.
I don't like the inconsistency here of having an fstype-specific option block only for this option. The geometry and verity options are for fat and ext4 respectively and don't define a sub-struct for the filesystems. Let's put the AGCount under MkfsOptions directly for consistency.
We can rethink the structure and whether we want to make sub-structs for each filesystem another time.
There was a problem hiding this comment.
Done ! thanks for the review
|
Tested this with a fresh build of FCOS to confirm everything works : |
The mkfs.xfs stage already support setting the XFS `agcount` so this is wiring it up to a `disk.yaml` option. I went with a similar approach as osbuild#1825 Assisted-by: Opencode.ai <Opus-4.6>
e2f3741 to
a405699
Compare
|
Adding to the merge queue again. The failure should be fixed by #2467 (which is already on the queue right now). |
The mkfs.xfs stage already support setting the XFS
agcountso this is wiring it up to adisk.yamloption.I went with a similar approach as #1825
Assisted-by: Opencode.ai <Opus-4.6>