[pve-devel] [PATCH installer v2 1/6] low-level: initialize UI backend for 'dump-env' subcommand too

Christoph Heiss c.heiss at proxmox.com
Tue Feb 13 16:13:58 CET 2024


Some detection routines might try to log things and call some
Proxmox::Ui functions all the way down, so just initialize it with the
stdio backend to avoid errors.

Signed-off-by: Christoph Heiss <c.heiss at proxmox.com>
---
Changes since v1:
  * no changes

 proxmox-low-level-installer | 1 +
 1 file changed, 1 insertion(+)

diff --git a/proxmox-low-level-installer b/proxmox-low-level-installer
index d127a40..2848295 100755
--- a/proxmox-low-level-installer
+++ b/proxmox-low-level-installer
@@ -91,6 +91,7 @@ Proxmox::Log::init("/tmp/install-low-level-${cmd}.log");

 my $env = Proxmox::Install::ISOEnv::get();
 if ($cmd eq 'dump-env') {
+    Proxmox::UI::init_stdio({}, $env);

     my $out_dir = $env->{locations}->{run};
     make_path($out_dir);
--
2.43.0





More information about the pve-devel mailing list