Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
},
};
-my sub read_cmap {
+my sub read_locale_info {
my ($lib_dir) = @_;
my $countryfn = "${lib_dir}/country.dat";
cfg => $cfg,
iso => $cd_info,
locations => $locations,
+ locales => read_locale_info($locations->{lib}),
};
return $env;
my $keymap = 'en-us';
my $password;
my $mailto = 'mail@example.invalid';
-my $cmap;
+my $cmap = $env->{locales};
my $autoreboot_seconds = 5;
my $config = {
$country = detect_country() if $ipconf->{default} || is_test_mode();
-# read country, kmap and timezone infos
-$cmap = Proxmox::Install::Env::read_cmap($env->{locations}->{lib});
-
if (!defined($cmap->{country}->{$country})) {
log_warn("ignoring detected country '$country', invalid or unknown\n");
$country = undef;