Reported-by: Fiona Ebner <f.eb...@proxmox.com> Signed-off-by: Christoph Heiss <c.he...@proxmox.com> --- proxmox-auto-installer/src/utils.rs | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/proxmox-auto-installer/src/utils.rs b/proxmox-auto-installer/src/utils.rs index 02c27d8..1912e51 100644 --- a/proxmox-auto-installer/src/utils.rs +++ b/proxmox-auto-installer/src/utils.rs @@ -280,13 +280,16 @@ pub fn verify_locale_settings(answer: &Answer, locales: &LocaleInfo) -> Result<( if !locales.kmap.keys().any(|i| i == &answer.global.keyboard) { bail!("keyboard layout '{}' is not valid", &answer.global.keyboard); } + if !locales .cczones .iter() .any(|(_, zones)| zones.contains(&answer.global.timezone)) + && answer.global.timezone != "UTC" { bail!("timezone '{}' is not valid", &answer.global.timezone); } + Ok(()) } -- 2.44.0 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel