diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2002-08-12 20:43:00 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2002-08-12 20:43:00 +0000 |
commit | 44119a22a9d8c5afb530c03fd554a9b7505c566d (patch) | |
tree | a99e50b1aec205db1c67470bdfb0fa527b8e0117 /perl-install/install2.pm | |
parent | 0d8f2ff918a2a72afca411fb3fd0f779e95e8405 (diff) | |
download | drakx-backup-do-not-use-44119a22a9d8c5afb530c03fd554a9b7505c566d.tar drakx-backup-do-not-use-44119a22a9d8c5afb530c03fd554a9b7505c566d.tar.gz drakx-backup-do-not-use-44119a22a9d8c5afb530c03fd554a9b7505c566d.tar.bz2 drakx-backup-do-not-use-44119a22a9d8c5afb530c03fd554a9b7505c566d.tar.xz drakx-backup-do-not-use-44119a22a9d8c5afb530c03fd554a9b7505c566d.zip |
- fix reading previous keyboard config on upgrade (for displaying in summary)
- ensure keyboard and mouse configuration are not overwritten if not explictly modified on upgrade
- propagate pci=xxx at install to bootloader (since "pci=bios,biosirq" is needed on some box, see http://islay.dyndns.org/taz/index.html for more)
Diffstat (limited to 'perl-install/install2.pm')
-rw-r--r-- | perl-install/install2.pm | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/perl-install/install2.pm b/perl-install/install2.pm index 842c57fee..e980794cd 100644 --- a/perl-install/install2.pm +++ b/perl-install/install2.pm @@ -98,11 +98,9 @@ sub selectMouse { require pkgs; my ($first_time) = $ent_number == 1; - add2hash($o->{mouse} ||= {}, mouse::read($o->{prefix})) if $o->{isUpgrade} && $first_time; - installStepsCall($o, $auto, 'selectMouse', !$first_time || $clicked); - addToBeDone { mouse::write($o->{prefix}, $o->{mouse}) } 'installPackages'; + addToBeDone { mouse::write($o->{prefix}, $o->{mouse}) } 'installPackages' if !$o->{isUpgrade} || $clicked; } #------------------------------------------------------------------------------ @@ -119,13 +117,16 @@ sub setupSCSI { #------------------------------------------------------------------------------ sub selectKeyboard { my ($clicked, $first_time, $auto) = ($_[0], $_[1] == 1, $_[2]); - - if ($o->{isUpgrade} && $first_time && $o->{keyboard}{unsafe}) { + + installStepsCall($o, $auto, 'selectKeyboard', $clicked); + + #- read keyboard ASAP (so that summary displays ok) + addToBeDone { + $o->{keyboard}{unsafe} or return; if (my $keyboard = keyboard::read()) { $o->{keyboard} = $keyboard; } - } - installStepsCall($o, $auto, 'selectKeyboard', $clicked); + } 'formatPartitions' if $o->{isUpgrade}; } #------------------------------------------------------------------------------ |