[pve-devel] [PATCH installer 0/5] allow both snake- and kebab-cased property names in the answer file
Daniel Kral
d.kral at proxmox.com
Mon Feb 17 13:17:43 CET 2025
This is a followup to a previous discussion at [0].
Small patch series which allows both snake- and kebab-cased property
names in the configuration file for the auto installer, i.e. answer
files. This allows to introduce a migration from snake_cased towards
kebab-cased property names in the answer file to be consistent with
other configuration files, which prefer kebab-case too.
The only property key that was not changed in casing was the filter
match rules for network and block devices as those are not in our
control, but matches the udevadm output's JSON property keys (e.g.
"filter.ID_MODEL").
The last patch introduces a deprecation warning that is output to the
user when verifying answer files and preparing auto installer ISOs with
the assistant to be applied for a major version bump, i.e. PVE
9.0/Trixie-based releases as suggested by @Thomas at [0].
[0] https://lore.proxmox.com/pve-devel/0dec173a-da75-4d70-ac07-e1133c136081@proxmox.com/
Daniel Kral (5):
auto-installer: factor out field rename casing for network config mode
auto-installer: first-boot: allow snake- and kebabcased property names
auto-installer: allow snake- and kebabcased property names in answer
files
auto-installer: add redundant kebab-case renames to config structures
assistant: add deprecation notice for snakecased parameters
proxmox-auto-install-assistant/src/main.rs | 24 ++++++++++++++++
proxmox-auto-installer/src/answer.rs | 33 +++++++++++++---------
2 files changed, 44 insertions(+), 13 deletions(-)
--
2.39.5
More information about the pve-devel
mailing list