e.g., due to having no network (no DHCP lease)
Reported-by: Christian Ebner <c.ebner@proxmox.com>
Reported-by: Stefan Hanreich <s.hanreich@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
my $iso_env = Proxmox::Install::ISOEnv::get();
my $country = Proxmox::Install::RunEnv::get('country');
- if (!defined($iso_env->{locales}->{country}->{$country})) {
+ if (defined($country) && !defined($iso_env->{locales}->{country}->{$country})) {
log_warn("ignoring detected country '$country', invalid or unknown\n");
$country = undef;
}