[pve-devel] [PATCH installer 2/5] auto-installer: first-boot: allow snake- and kebabcased property names
Daniel Kral
d.kral at proxmox.com
Mon Feb 17 13:17:45 CET 2025
The default case for property names in TOML configuration files is de
facto snake_case. The answer file for the auto-installer adapted this,
but this causes inconsistencies with the property names in other Proxmox
config file formats, which are preferably in kebab-case.
The properties for the "first-boot" section were intentionally
introduced in kebab-case to steer away from snake_cased to kebab-cased
property names. Since this caused some initial confusion for users [0],
allow both cases for the time being and deprecate the snake_cased
variant of all properties in a future major version.
[0] https://bugzilla.proxmox.com/show_bug.cgi?id=5973
Signed-off-by: Daniel Kral <d.kral at proxmox.com>
---
proxmox-auto-installer/src/answer.rs | 1 +
1 file changed, 1 insertion(+)
diff --git a/proxmox-auto-installer/src/answer.rs b/proxmox-auto-installer/src/answer.rs
index 38a048b..e8614d2 100644
--- a/proxmox-auto-installer/src/answer.rs
+++ b/proxmox-auto-installer/src/answer.rs
@@ -118,6 +118,7 @@ pub struct FirstBootHookInfo {
/// Retrieve the post-install script from a URL, if source == "from-url".
pub url: Option<String>,
/// SHA256 cert fingerprint if certificate pinning should be used, if source == "from-url".
+ #[serde(alias = "cert_fingerprint")]
pub cert_fingerprint: Option<String>,
}
--
2.39.5
More information about the pve-devel
mailing list