summaryrefslogtreecommitdiffstats
path: root/perl-install/install_steps.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-02-02 14:02:07 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-02-02 14:02:07 +0000
commite4451a52e7156c338e19591951084973f94aace9 (patch)
tree22833e6ea227d5437a698e373c5549ac273ddcd6 /perl-install/install_steps.pm
parent86a9bd47c2d0cb658ed7b1e33ba2f5210436e278 (diff)
downloaddrakx-e4451a52e7156c338e19591951084973f94aace9.tar
drakx-e4451a52e7156c338e19591951084973f94aace9.tar.gz
drakx-e4451a52e7156c338e19591951084973f94aace9.tar.bz2
drakx-e4451a52e7156c338e19591951084973f94aace9.tar.xz
drakx-e4451a52e7156c338e19591951084973f94aace9.zip
(configureXBefore): set XKB_IN_USE=no if !$has_xkb in /etc/sysconfig/i18n
Diffstat (limited to 'perl-install/install_steps.pm')
-rw-r--r--perl-install/install_steps.pm10
1 files changed, 8 insertions, 2 deletions
diff --git a/perl-install/install_steps.pm b/perl-install/install_steps.pm
index 608e90641..4a7d57997 100644
--- a/perl-install/install_steps.pm
+++ b/perl-install/install_steps.pm
@@ -254,7 +254,7 @@ sub choosePackages {
#- not be able to start (xfs at least).
my $available = install_any::getAvailableSpace($o);
my $availableCorrected = pkgs::invCorrectSize($available / sqr(1024)) * sqr(1024);
- log::l(sprintf "available size %dMB (corrected %dMB)", $available / sqr(1024), $availableCorrected / sqr(1024));
+ log::l(sprintf "available size %s (corrected %s)", formatXiB($available), formatXiB($availableCorrected));
#- avoid destroying user selection of packages but only
#- for expert, as they may have done individual selection before.
@@ -700,10 +700,16 @@ sub setupBootloader($) {
sub configureXBefore {
my ($o) = @_;
my $xkb = $o->{X}{keyboard}{xkb_keymap} || keyboard::keyboard2xkb($o->{keyboard});
- if (!-e "$o->{prefix}/usr/X11R6/lib/X11/xkb/symbols/$xkb" && (my $f = keyboard::xmodmap_file($o->{keyboard}))) {
+ $xkb = '' if !($xkb && -e "$o->{prefix}/usr/X11R6/lib/X11/xkb/symbols/$xkb");
+ if (!$xkb && (my $f = keyboard::xmodmap_file($o->{keyboard}))) {
require commands;
commands::cp("-f", $f, "$o->{prefix}/etc/X11/xinit/Xmodmap");
$xkb = '';
+
+ }
+ {
+ my $f = "$o->{prefix}/etc/sysconfig/i18n";
+ setVarsInSh($f, add2hash_({ XKB_IN_USE => $xkb ? '': 'no' }, { getVarsFromSh($f) }));
}
$o->{X}{keyboard}{xkb_keymap} = $xkb;
$o->{X}{mouse} = $o->{mouse};