]> git.proxmox.com Git - pve-installer.git/commitdiff
low-level: initialize UI backend for 'dump-env' subcommand too
authorChristoph Heiss <c.heiss@proxmox.com>
Tue, 13 Feb 2024 15:13:58 +0000 (16:13 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 23 Feb 2024 13:19:56 +0000 (14:19 +0100)
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@proxmox.com>
proxmox-low-level-installer

index d127a40fa3533e58d465a8705ca6d4e3fc2fbfd3..28482959ae0f96c63b54f96365774110e7f50598 100755 (executable)
@@ -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);