Commit Graph

5 Commits

Author SHA1 Message Date
Jonathon Anderson
8bf2e115a9 Make mkfs -f/-F flag selection more explicit
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-12-17 15:16:05 -07:00
kosmolito
7842f41f62 fix(mkfs): trim template whitespace; add changelog; add contributor
Signed-off-by: kosmolito <said.karker@gmail.com>
2025-12-17 14:37:57 -07:00
kosmolito
0c15c10515 refactor: apply mkfs force flag only when overwrite is true
Introduce $forceFlag variable to set -f/-F for forced formatting while
skipping force for regular runs.
2025-12-17 14:37:35 -07:00
kosmolito
378abfc373 fix(mkfs): correctly handle already-formatted disks and conditional overwrite
- Updated `already_formatted()` to use `blkid` plus safe read-only mount for accurate filesystem detection.
- Added conditional `-f` flag to `mkfs` only when `overwrite: true` is set.
- Removed `continue` statements from the shell script to prevent runtime errors.
- Updated Go overlay snapshot tests to reflect new template rendering.
- Ensures disks with leftover signatures but no valid filesystem are properly reformatted during node provisioning.
2025-12-17 14:37:35 -07:00
Jonathon Anderson
db3a3fee05 Additional overlays to support provision-to-disk without ignition
- sfdisk - partitions the disk
- mkfs - formats partitions
- mkswap - formats partitions for swap
- systemd.mount - explicit creation of systemd mount units
- systemd.swap - explicit creation of systemd swap units

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2025-06-30 23:24:20 -06:00