From 66138cdc6bbd973426a9345c78c8120d9b446670 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 11 Aug 2000 00:27:27 +0000 Subject: no_comment --- perl-install/install_steps_interactive.pm | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) (limited to 'perl-install/install_steps_interactive.pm') diff --git a/perl-install/install_steps_interactive.pm b/perl-install/install_steps_interactive.pm index c47c442b3..71b4993b8 100644 --- a/perl-install/install_steps_interactive.pm +++ b/perl-install/install_steps_interactive.pm @@ -120,8 +120,11 @@ sub selectInstallClass($@) { $::expert = $c{$_[0]} eq "expert" && $o->ask_from_list_('', _("Are you sure you are an expert? -You will be allowed to make powerful but dangerous things here."), - [ _("Expert"), _("Customized") ]) ne "Customized"; +You will be allowed to make powerful but dangerous things here. + +You will be asked questions such as: ``Use shadow file for passwords?'', +are you ready to answer that kind of questions?"), + [ _("Customized"), _("Expert") ]) ne "Customized"; }; $o->{isUpgrade} = $o->selectInstallClass1($verifInstallClass, @@ -208,6 +211,24 @@ sub ask_mntpoint_s { $o->SUPER::ask_mntpoint_s($fstab); } +#------------------------------------------------------------------------------ +sub doPartitionDisks { + my ($o) = @_; + my %solutions = install_any::partitionWizard($o, $o->{hds}, $o->{fstab}, $o->{partitioning}{readonly}); + my @solutions = sort { $b->[0] <=> $a->[0] } values %solutions; + + my $level = $::beginner ? 2 : -9999; + my @sol = grep { $_->[0] >= $level } @solutions; + @solutions = @sol if @sol > 1; + + my $ok; while (!$ok) { + my $sol = $o->ask_from_listf('', _("The DrakX Partitioning wizard found the following solutions:"), sub { $_->[1] }, \@solutions) or redo; + eval { $ok = $sol->[2]->() }; + $ok &&= !$@; + $@ and $o->ask_warn('', _("Partitioning failed: %s", $@)); + } +} + #------------------------------------------------------------------------------ sub rebootNeeded($) { my ($o) = @_; @@ -935,7 +956,7 @@ sub configureX { Xconfig::getinfoFromXF86Config($o->{X}, $o->{prefix}); } } - $::force_xf3 = $::force_xf3; ; #- for no warning + $::force_xf3 = $::force_xf3; #- for no warning $::force_xf3 = $o->ask_yesorno('', _("DrakX will generate config files for both XFree 3.3 and XFree 4.0. By default, the 4.0 server is used unless your card is not supported. -- cgit v1.2.1