From 23c152b7d199b290607b3d3e3a14d76dbaa60e90 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 13 Sep 1999 22:03:33 +0000 Subject: no_comment --- perl-install/install_steps.pm | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'perl-install/install_steps.pm') diff --git a/perl-install/install_steps.pm b/perl-install/install_steps.pm index 584bf1fb3..4736a98c9 100644 --- a/perl-install/install_steps.pm +++ b/perl-install/install_steps.pm @@ -40,7 +40,6 @@ sub new($$) { sub enteringStep($$) { my ($o, $step) = @_; log::l("starting step `$step'"); - $o->kill; for (my $s = $o->{steps}{first}; $s; $s = $o->{steps}{$s}{next}) { @@ -69,7 +68,8 @@ so continue at your own risk :("), $@ ]) if $@; } } -sub errorInStep($$) {} +sub errorInStep($$) { print "error :(\n"; exit 1 } +sub kill_action {} #-###################################################################################### @@ -99,7 +99,8 @@ sub setupSCSI { modules::load_thiskind('scsi') } #------------------------------------------------------------------------------ sub doPartitionDisks($$) { my ($o, $hds) = @_; - fsedit::auto_allocate($hds, $o->{partitions}); + return if $::testing; + partition_table::write($_) foreach $hds; } #------------------------------------------------------------------------------ @@ -210,8 +211,7 @@ sub setRootPassword($) { $u{password} = crypt_($u{password}) if $u{password}; - my $f = "$p/etc/passwd"; - my @lines = cat_($f, "failed to open file $f"); + my @lines = cat_(my $f = "$p/etc/passwd") or log::l("missing passwd file"), return; local *F; open F, "> $f" or die "failed to write file $f: $!\n"; @@ -273,6 +273,7 @@ sub createBootdisk($) { #------------------------------------------------------------------------------ sub setupBootloader($) { my ($o) = @_; + return if $::g_auto_install; my $versionString = versionString(); lilo::install($o->{prefix}, $o->{hds}, $o->{fstab}, $versionString, $o->{bootloader}); } -- cgit v1.2.1