could be also done in RunEnv, as one could argue both, this is
set at runtime, and this is for the ISO installer environment.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
};
}
+# setup global environment already on module load
+$ENV{DEBIAN_FRONTEND} = 'noninteractive';
+$ENV{LC_ALL} = 'C';
+$ENV{'LVM_SUPPRESS_FD_WARNINGS'} = '1';
+
sub setup {
my $cd_info = get_cd_info();
my $product = $cd_info->{product};
use strict;
use warnings;
-$ENV{DEBIAN_FRONTEND} = 'noninteractive';
-$ENV{LC_ALL} = 'C';
-
use Getopt::Long;
use IPC::Open2;
use IO::File;
Proxmox::Install::ISOEnv::set_test_image($test_image) if $test_image;
}
-$ENV{'LVM_SUPPRESS_FD_WARNINGS'} = '1';
-
my $iso_env = Proxmox::Install::ISOEnv::setup();
my $run_env = Proxmox::Install::RunEnv::query_installation_environment();