Re: [pve-devel] [PATCH installer 1/2] low level: config: filter out kernel cmdline on word boundaries

2024-08-21 Thread Christoph Heiss
Thanks for the review! On Wed, Aug 14, 2024 at 12:51:27PM GMT, Alexander Zeidler wrote: > On Fri Aug 9, 2024 at 1:51 PM CEST, Christoph Heiss wrote: > > [..] > > diff --git a/Proxmox/Install/Config.pm b/Proxmox/Install/Config.pm > > index ae70093..6b064b1 100644 > > --- a/Proxmox/Install/Config.pm

[pve-devel] [PATCH installer v3 08/20] common: http: pass url by reference

2024-08-21 Thread Christoph Heiss
Signed-off-by: Christoph Heiss --- Changes v2 -> v3: * new patch, split out from later patch proxmox-fetch-answer/src/fetch_plugins/http.rs | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/proxmox-fetch-answer/src/fetch_plugins/http.rs b/proxmox-fetch-answer/src/fet

[pve-devel] [PATCH installer v3 00/20] fix #5536: implement post-(auto-)installation notification mechanism

2024-08-21 Thread Christoph Heiss
This implements a mechanism for post-installation "notifications" via a POST request [0] when using the auto-installer. It's implemented as a separate, small utility to facilitate separation of concerns and make the information gathering easier by having it isolated in one place. Patches #1 throu

[pve-devel] [PATCH installer v3 06/20] common: split out installer setup files loading functionality

2024-08-21 Thread Christoph Heiss
This allows re-using this piece of code in e.g. the post hook, instead of having to open-code it there. No functional changes. Signed-off-by: Christoph Heiss --- Changes v2 -> v3: * no changes Changes v1 -> v2: * change `&PathBuf` parameter to `impl AsRef` proxmox-auto-installer/tests/par

[pve-devel] [PATCH installer v3 17/20] auto-installer: udevinfo: introduce type alias for udev properties

2024-08-21 Thread Christoph Heiss
Makes handling & passing them around a bit more convenient. Will be used in the upcoming proxmox-post-hook utility. Signed-off-by: Christoph Heiss --- Changes v2 -> v3: * new patch, split out from later patch proxmox-auto-installer/src/udevinfo.rs | 8 +--- 1 file changed, 5 insertions(+)

[pve-devel] [PATCH installer v3 07/20] common: setup: deserialize `secure_boot` property from runtime env

2024-08-21 Thread Christoph Heiss
Needed for the post-hook functionality, which sends this information as part of its information set. Signed-off-by: Christoph Heiss --- Changes v2 -> v3: * no changes Changes v1 -> v2: * new patch Proxmox/Install/RunEnv.pm | 1 + proxmox-installer-common/src/setup.rs | 12

[pve-devel] [PATCH installer v3 14/20] auto-installer: tests: replace `PathBuf` parameters with `AsRef`

2024-08-21 Thread Christoph Heiss
Signed-off-by: Christoph Heiss --- Changes v2 -> v3: * no changes Changes v1 -> v2: * new patch, suggestion by Stefan proxmox-auto-installer/tests/parse-answer.rs | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/proxmox-auto-installer/tests/parse-answer.rs b/pro

[pve-devel] [PATCH installer v3 12/20] auto-install-assistant: replace `PathBuf` parameters with `AsRef`

2024-08-21 Thread Christoph Heiss
Signed-off-by: Christoph Heiss --- Changes v2 -> v3: * no changes Changes v1 -> v2: * new patch, suggestion by Stefan proxmox-auto-install-assistant/src/main.rs | 23 +- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/proxmox-auto-install-assistant/src/mai

[pve-devel] [PATCH installer v3 16/20] auto-installer: answer: factor out answer file reading into function

2024-08-21 Thread Christoph Heiss
Signed-off-by: Christoph Heiss --- Changes v2 -> v3: * new patch, split out from later patch proxmox-auto-installer/src/answer.rs | 16 +++- .../src/bin/proxmox-auto-installer.rs| 11 +-- 2 files changed, 16 insertions(+), 11 deletions(-) diff --git

[pve-devel] [PATCH installer v3 10/20] fetch-answer: move http-related code to gated module in installer-common

2024-08-21 Thread Christoph Heiss
This enable reusage of this code in other crates. Needed esp. by the upcoming post-installation notification hook functionality. No functional changes overall. Signed-off-by: Christoph Heiss --- Changes v2 -> v3: * no changes Changes v1 -> v2: * no changes Cargo.toml

[pve-devel] [PATCH installer v3 03/20] low level: run env: ensure `secure_boot` property is dumped as int

2024-08-21 Thread Christoph Heiss
Previously, in the "false" case, it would serialize to an empty string. In the future this property will be deserialized by (type-safe) Rust code. Signed-off-by: Christoph Heiss --- Changes v2 -> v3: * new patch, found by Aaron Proxmox/Install/RunEnv.pm | 2 +- 1 file changed, 1 insertion(+),

[pve-devel] [PATCH installer v3 01/20] tree-wide: fix some typos

2024-08-21 Thread Christoph Heiss
Signed-off-by: Christoph Heiss --- Changes v2 -> v3: * fix some more typos Changes v1 -> v2: * new patch proxmox-auto-install-assistant/src/main.rs | 4 ++-- proxmox-fetch-answer/src/fetch_plugins/http.rs | 2 +- proxmox-installer-common/src/disk_checks.rs| 2 +- unconfigured.sh

[pve-devel] [PATCH installer v3 05/20] common: setup: serialize `target_hd` as string explicitly

2024-08-21 Thread Christoph Heiss
Signed-off-by: Christoph Heiss --- Changes v2 -> v3: * no changes Changes v1 -> v2: * no changes proxmox-auto-installer/src/utils.rs | 15 +++ proxmox-installer-common/src/setup.rs | 23 ++- proxmox-tui-installer/src/setup.rs| 2 +- 3 files changed, 14

[pve-devel] [PATCH installer v3 09/20] debian: strip unused library dependencies

2024-08-21 Thread Christoph Heiss
Rust links in some dynamic libraries even if only used by a disabled feature gate. This will be needed due to moving http-related code into the proxmox-installer-common crate and thus pulling it in at more places. Signed-off-by: Christoph Heiss --- Changes v2 -> v3: * no changes Changes v1 ->

[pve-devel] [PATCH installer v3 18/20] fix #5536: auto-installer: answer: add `posthook` section

2024-08-21 Thread Christoph Heiss
Signed-off-by: Christoph Heiss --- Changes v2 -> v3: * no changes Changes v1 -> v2: * no changes proxmox-auto-installer/src/answer.rs | 11 +++ 1 file changed, 11 insertions(+) diff --git a/proxmox-auto-installer/src/answer.rs b/proxmox-auto-installer/src/answer.rs index bada8a5..

[pve-devel] [PATCH installer v3 13/20] auto-installer: tests: simplify empty disks check

2024-08-21 Thread Christoph Heiss
Signed-off-by: Christoph Heiss --- Changes v2 -> v3: * no changes Changes v1 -> v2: * new patch, suggestion by Stefan proxmox-auto-installer/tests/parse-answer.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/proxmox-auto-installer/tests/parse-answer.rs b/proxmox-a

[pve-devel] [PATCH installer v3 20/20] unconfigured.sh: run proxmox-post-hook after successful auto-install

2024-08-21 Thread Christoph Heiss
Signed-off-by: Christoph Heiss --- Changes v2 -> v3: * no changes Changes v1 -> v2: * no changes unconfigured.sh | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/unconfigured.sh b/unconfigured.sh index b1c980a..51b7974 100755 --- a/unconfigured.sh +++ b/unconfigure

[pve-devel] [PATCH installer v3 04/20] common: simplify filesystem type serializing & Display trait impl

2024-08-21 Thread Christoph Heiss
Implements the proper de-/serializer directly on the type and then use serde_plain::derive_display_from_serialize where applicable, instead of separate serializer functions somewhere else. Signed-off-by: Christoph Heiss --- Changes v2 -> v3: * no changes Changes v1 -> v2: * implement FromStr

[pve-devel] [PATCH installer v3 11/20] tree-wide: convert some more crates to use workspace dependencies

2024-08-21 Thread Christoph Heiss
No functional changes. Signed-off-by: Christoph Heiss --- Changes v2 -> v3: * no changes Changes v1 -> v2: * no changes Cargo.toml| 4 proxmox-auto-install-assistant/Cargo.toml | 14 +++--- proxmox-auto-installer/Cargo.toml | 15 +++

[pve-devel] [PATCH installer v3 19/20] fix #5536: post-hook: add utility for sending notifications after auto-install

2024-08-21 Thread Christoph Heiss
This utility can be called with the low-level install config after a successful installation to send a notification via a HTTP POST request, if the user has configured an endpoint for that in the answer file. Signed-off-by: Christoph Heiss --- Since it was discussed a bit in the last revision [0

Re: [pve-devel] [PATCH installer v2 00/17] fix #5536: implement post-(auto-)installation notification mechanism

2024-08-21 Thread Christoph Heiss
v3 out: https://lists.proxmox.com/pipermail/pve-devel/2024-August/065163.html ___ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

[pve-devel] [PATCH installer v3 15/20] auto-installer: move `SystemDMI` struct to common crate

2024-08-21 Thread Christoph Heiss
This functionality will be reused by the post-hook, which sends this data as part of its information set. Signed-off-by: Christoph Heiss --- Changes v2 -> v3: * no changes Changes v1 -> v2: * new patch proxmox-auto-installer/src/sysinfo.rs | 51 +--- proxmox-installer

[pve-devel] [PATCH installer v2 2/3] low level: config: filter out all installer-related kernel arguments

2024-08-21 Thread Christoph Heiss
For one, include the auto-installer arguments, which weren't filtered out before. Secondely, include the aliases as introduced in [0]. [0] de7f779 ("unconfigured: accept more telling boot cmdline option names") Reported-by: Friedrich Weber Signed-off-by: Christoph Heiss --- Changes v1 -> v2:

[pve-devel] [PATCH installer v2 1/3] low level: config: filter out kernel cmdline on word boundaries

2024-08-21 Thread Christoph Heiss
Otherwise, substrings might get replaced, e.g. the replacement `proxmox-start-auto-installer` -> `pxmox-start-auto-installer` would be done. Fixes: a02a78a ("fix #4747: pass kernel cmdline parameters to target system") Suggested-by: Thomas Lamprecht Signed-off-by: Christoph Heiss --- Changes v1

[pve-devel] [PATCH installer v2 3/3] test: add test for kernel commandline parsing

2024-08-21 Thread Christoph Heiss
Signed-off-by: Christoph Heiss --- Changes v1 -> v2: * new patch Proxmox/Install/Config.pm| 2 +- test/Makefile| 7 +++- test/parse-kernel-cmdline.pl | 62 3 files changed, 69 insertions(+), 2 deletions(-) create mode 100755 test/pars

[pve-devel] [PATCH installer v2 0/3] properly filter out all installer-related kernel arguments

2024-08-21 Thread Christoph Heiss
Friedrich recently reported that when installing using the auto-installer, the kernel commandline does not get cleaned up properly. For building/testing on current master, [0] needs to be applied beforehand to fix a test failure. [0] https://lists.proxmox.com/pipermail/pve-devel/2024-July/064815.

Re: [pve-devel] [PATCH installer 0/2] properly filter out all installer-related kernel arguments

2024-08-21 Thread Christoph Heiss
v2 out: https://lists.proxmox.com/pipermail/pve-devel/2024-August/065186.html ___ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

[pve-devel] [PATCH storage 1/2] esxi: fix #5587: add support for older version of vmx storage filepaths

2024-08-21 Thread Daniel Kral
Allow the ESXi storage disk entry property "fileName" to be flatcased ("filename") in addition to being camelcased ("fileName"). This adds compatibility with older ESXi .vmx configuration files. Signed-off-by: Daniel Kral --- src/PVE/Storage/ESXiPlugin.pm | 2 +- 1 file changed, 1 insertion(+),

[pve-devel] [PATCH storage/esxi-import-tools 0/2] fix #5587: compatibility for flatcased 'filename' property in vmx file

2024-08-21 Thread Daniel Kral
Compatibility for an older naming convention of the "fileName" property of mounted storage device images in vmx configuration files was requested at [1]. Previously, it was only possible to import ESXi VMs, where the mentioned property name was camelcased (e.g. "scsi0:0.fileName"). This patch allo

[pve-devel] [PATCH esxi-import-tools 2/2] fix #5587: add support for older version of vmx storage filepaths

2024-08-21 Thread Daniel Kral
Allow the ESXi storage disk entry property "fileName" to be flatcased ("filename") in addition to being camelcased ("fileName"). This adds compatibility with older ESXi .vmx configuration files. Signed-off-by: Daniel Kral --- src/vmx.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff