diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2001-02-02 14:02:07 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2001-02-02 14:02:07 +0000 |
commit | e4451a52e7156c338e19591951084973f94aace9 (patch) | |
tree | 22833e6ea227d5437a698e373c5549ac273ddcd6 | |
parent | 86a9bd47c2d0cb658ed7b1e33ba2f5210436e278 (diff) | |
download | drakx-backup-do-not-use-e4451a52e7156c338e19591951084973f94aace9.tar drakx-backup-do-not-use-e4451a52e7156c338e19591951084973f94aace9.tar.gz drakx-backup-do-not-use-e4451a52e7156c338e19591951084973f94aace9.tar.bz2 drakx-backup-do-not-use-e4451a52e7156c338e19591951084973f94aace9.tar.xz drakx-backup-do-not-use-e4451a52e7156c338e19591951084973f94aace9.zip |
(configureXBefore): set XKB_IN_USE=no if !$has_xkb in /etc/sysconfig/i18n
-rw-r--r-- | perl-install/install_steps.pm | 10 |
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}; |