From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id BAD6A1FF0C1 for ; Wed, 26 Aug 2026 13:06:27 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 85CEC214B3; Wed, 26 Aug 2026 13:06:27 +0200 (CEST) From: Christoph Heiss To: pdm-devel@lists.proxmox.com Subject: [PATCH installer v2 11/16] assistant: validate-answer: also verify post-hook settings if set Date: Wed, 26 Aug 2026 13:04:54 +0200 Message-ID: <20260826110504.1339934-12-c.heiss@proxmox.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260826110504.1339934-1-c.heiss@proxmox.com> References: <20260826110504.1339934-1-c.heiss@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1787742375151 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.525 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: 6QFTCGN7CZMCKFBRVJQU33WQYIZ27TTC X-Message-ID-Hash: 6QFTCGN7CZMCKFBRVJQU33WQYIZ27TTC X-MailFrom: c.heiss@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox Datacenter Manager development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Signed-off-by: Christoph Heiss --- Depends on the `proxmox-installer-types` changes and an accompanying dependency bump. Changes v1 -> v2: * no changes proxmox-auto-install-assistant/src/main.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/proxmox-auto-install-assistant/src/main.rs b/proxmox-auto-install-assistant/src/main.rs index 730d7d8..41a17d6 100644 --- a/proxmox-auto-install-assistant/src/main.rs +++ b/proxmox-auto-install-assistant/src/main.rs @@ -23,7 +23,7 @@ use proxmox_auto_installer::{ AutoInstSettings, FetchAnswerFrom, HttpOptions, default_partition_label, get_matched_udev_indexes, get_nic_list, get_single_udev_index, verify_disks_settings, verify_email_and_root_password_settings, verify_first_boot_settings, - verify_locale_settings, verify_network_settings, + verify_locale_settings, verify_network_settings, verify_post_hook_settings, }, }; use proxmox_installer_common::{FIRST_BOOT_EXEC_MAX_SIZE, FIRST_BOOT_EXEC_NAME, cli}; @@ -1596,6 +1596,11 @@ fn parse_answer(path: impl AsRef + fmt::Debug) -> Result bail!("Error parsing answer file: {err}"), -- 2.55.0