]> git.proxmox.com Git - pve-installer.git/commitdiff
early initialize log
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 19 Jun 2023 19:03:47 +0000 (21:03 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 19 Jun 2023 19:49:00 +0000 (21:49 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
proxinstall

index ca9c091f0d238638b21a4a96bdf22a1cd528f0ef..82d9aa6e4dbec85a5628dc3e61e65a47466c6f21 100755 (executable)
@@ -19,8 +19,10 @@ use File::Path;
 use Time::HiRes;
 use POSIX ":sys_wait_h";
 
-use Proxmox::Install::ISOEnv;
 use Proxmox::Log;
+Proxmox::Log::init("/tmp/install.log");
+
+use Proxmox::Install::ISOEnv;
 use Proxmox::Sys::Block qw(get_cached_disks wipe_disk partition_bootable_disk);
 use Proxmox::Sys::Command qw(run_command syscmd);
 use Proxmox::Sys::File qw(file_read_firstline file_read_all file_write_all);
@@ -87,8 +89,6 @@ dir: local
        content iso,vztmpl,backup,rootdir,images
 __EOD__
 
-Proxmox::Log::init("/tmp/install.log");
-
 my $proxmox_libdir = $iso_env->{locations}->{lib};
 my $proxmox_cddir = $iso_env->{locations}->{iso};
 my $proxmox_pkgdir = "${proxmox_cddir}/proxmox/packages/";