* [pve-devel] [PATCH installer] common: fix deserialization of install config
@ 2024-11-19 11:08 Christoph Heiss
2024-11-19 13:31 ` [pve-devel] applied: " Thomas Lamprecht
0 siblings, 1 reply; 2+ messages in thread
From: Christoph Heiss @ 2024-11-19 11:08 UTC (permalink / raw)
To: pve-devel
We serialize it as an integer for perl compatibility, so we need to also
deserialize it as such .. the latter is used in proxmox-chroot.
Otherwise, an auto-installation will fail at the end, when a
post-installation webhook is configured, while trying to run the
proxmox-chroot tool.
Reported-by: Timothy Nicholson <t.nicholson@proxmox.com>
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
---
proxmox-installer-common/src/setup.rs | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/proxmox-installer-common/src/setup.rs b/proxmox-installer-common/src/setup.rs
index fefedf6..1a9a71c 100644
--- a/proxmox-installer-common/src/setup.rs
+++ b/proxmox-installer-common/src/setup.rs
@@ -473,7 +473,10 @@ pub struct InstallRootPassword {
#[derive(Clone, Default, Deserialize, Serialize)]
pub struct InstallFirstBootSetup {
- #[serde(serialize_with = "serialize_bool_as_u32")]
+ #[serde(
+ serialize_with = "serialize_bool_as_u32",
+ deserialize_with = "deserialize_bool_from_int"
+ )]
pub enabled: bool,
#[serde(skip_serializing_if = "Option::is_none")]
pub ordering_target: Option<String>,
--
2.47.0
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* [pve-devel] applied: [PATCH installer] common: fix deserialization of install config
2024-11-19 11:08 [pve-devel] [PATCH installer] common: fix deserialization of install config Christoph Heiss
@ 2024-11-19 13:31 ` Thomas Lamprecht
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Lamprecht @ 2024-11-19 13:31 UTC (permalink / raw)
To: Proxmox VE development discussion, Christoph Heiss
Am 19.11.24 um 12:08 schrieb Christoph Heiss:
> We serialize it as an integer for perl compatibility, so we need to also
> deserialize it as such .. the latter is used in proxmox-chroot.
>
> Otherwise, an auto-installation will fail at the end, when a
> post-installation webhook is configured, while trying to run the
> proxmox-chroot tool.
>
> Reported-by: Timothy Nicholson <t.nicholson@proxmox.com>
> Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
> ---
> proxmox-installer-common/src/setup.rs | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
>
applied, thanks!
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-11-19 13:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-19 11:08 [pve-devel] [PATCH installer] common: fix deserialization of install config Christoph Heiss
2024-11-19 13:31 ` [pve-devel] applied: " Thomas Lamprecht
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox