mirror of
https://git.proxmox.com/git/pve-installer
synced 2025-04-28 18:36:49 +00:00
move setting global environment variables into ISO env
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>
This commit is contained in:
parent
71583761ea
commit
ddd96e5cb9
@ -122,6 +122,11 @@ my sub get_locations {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# setup global environment already on module load
|
||||||
|
$ENV{DEBIAN_FRONTEND} = 'noninteractive';
|
||||||
|
$ENV{LC_ALL} = 'C';
|
||||||
|
$ENV{'LVM_SUPPRESS_FD_WARNINGS'} = '1';
|
||||||
|
|
||||||
sub setup {
|
sub setup {
|
||||||
my $cd_info = get_cd_info();
|
my $cd_info = get_cd_info();
|
||||||
my $product = $cd_info->{product};
|
my $product = $cd_info->{product};
|
||||||
|
@ -3,9 +3,6 @@
|
|||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
$ENV{DEBIAN_FRONTEND} = 'noninteractive';
|
|
||||||
$ENV{LC_ALL} = 'C';
|
|
||||||
|
|
||||||
use Getopt::Long;
|
use Getopt::Long;
|
||||||
use IPC::Open2;
|
use IPC::Open2;
|
||||||
use IO::File;
|
use IO::File;
|
||||||
@ -43,8 +40,6 @@ if (!$ENV{G_SLICE} || $ENV{G_SLICE} ne "always-malloc") {
|
|||||||
Proxmox::Install::ISOEnv::set_test_image($test_image) if $test_image;
|
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 $iso_env = Proxmox::Install::ISOEnv::setup();
|
||||||
my $run_env = Proxmox::Install::RunEnv::query_installation_environment();
|
my $run_env = Proxmox::Install::RunEnv::query_installation_environment();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user