summaryrefslogtreecommitdiffstats
path: root/perl-install/lang.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/lang.pm')
-rw-r--r--perl-install/lang.pm11
1 files changed, 9 insertions, 2 deletions
diff --git a/perl-install/lang.pm b/perl-install/lang.pm
index 702a43d32..96819d1e7 100644
--- a/perl-install/lang.pm
+++ b/perl-install/lang.pm
@@ -1467,8 +1467,15 @@ sub write {
# Only include valid fields and ommit any that are the same as LANG to make it cleaner
# (cleanup logic copied from systemd)
my @filtered_keys = grep { exists $h->{$_} && ($_ eq 'LANG' || !exists $h->{'LANG'} || $h->{$_} ne $h->{'LANG'}) } @locale_conf_fields;
- my $filtered = { map { $_ => $h->{$_} } @filtered_keys };
- setVarsInShMode($::prefix . $file, 0644, $filtered);
+ my $h2 = { map { $_ => $h->{$_} } @filtered_keys };
+ setVarsInShMode($::prefix . $file, 0644, $h2);
+
+ if ($h->{'SYSFONT'}) {
+ $file = '/etc/vconsole.conf';
+ $h2 = { 'FONT' => $h->{'SYSFONT'} };
+ $h2->{'FONT_UNIMAP'} = $h->{'SYSFONTACM'} if ($h->{'SYSFONTACM'});
+ addVarsInShMode($::prefix . $file, 0644, $h2);
+ }
}
run_program::rooted($::prefix, 'grub-gfxmenu', '--quiet', '--lang', $locale->{lang}) if !$b_user_only;