summaryrefslogtreecommitdiffstats
path: root/perl-install/install2.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>1999-10-22 16:58:56 +0000
committerPascal Rigaux <pixel@mandriva.com>1999-10-22 16:58:56 +0000
commit825da272c3b2e89b86e19656ade350240204896b (patch)
tree76cd5b7a4df61b94553b4c4e6ed96c5d4a40f235 /perl-install/install2.pm
parent72e8e78cd4d477aa06ac1c9507c109ca63ad0e8f (diff)
downloaddrakx-825da272c3b2e89b86e19656ade350240204896b.tar
drakx-825da272c3b2e89b86e19656ade350240204896b.tar.gz
drakx-825da272c3b2e89b86e19656ade350240204896b.tar.bz2
drakx-825da272c3b2e89b86e19656ade350240204896b.tar.xz
drakx-825da272c3b2e89b86e19656ade350240204896b.zip
no_comment
Diffstat (limited to 'perl-install/install2.pm')
-rw-r--r--perl-install/install2.pm30
1 files changed, 14 insertions, 16 deletions
diff --git a/perl-install/install2.pm b/perl-install/install2.pm
index dbd447232..688bf1894 100644
--- a/perl-install/install2.pm
+++ b/perl-install/install2.pm
@@ -267,7 +267,12 @@ sub setupSCSI {
#------------------------------------------------------------------------------
sub partitionDisks {
- return if $o->{lnx4win} || $o->{isUpgrade};
+ return
+ $o->{fstab} = [
+ { device => "loop7", mntpoint => "/", isFormatted => 1, isMounted => 1 },
+ { device => "/initrd/dos/lnx4win/swapfile", mntpoint => "swap", isFormatted => 1, isMounted => 1 },
+ ] if $o->{lnx4win};
+ return if $o->{isUpgrade};
$::o->{steps}{formatPartitions}{done} = 0;
eval { fs::umount_all($o->{fstab}, $o->{prefix}) } if $o->{fstab} && !$::testing;
@@ -294,17 +299,16 @@ sub partitionDisks {
}
sub formatPartitions {
- return if $o->{lnx4win} || $o->{isUpgrade};
-
- $o->choosePartitionsToFormat($o->{fstab});
+ unless ($o->{lnx4win} || $o->{isUpgrade}) {
+ $o->choosePartitionsToFormat($o->{fstab});
- unless ($::testing) {
- $o->formatPartitions(@{$o->{fstab}});
- fs::mount_all([ grep { isExt2($_) || isSwap($_) } @{$o->{fstab}} ], $o->{prefix});
+ unless ($::testing) {
+ $o->formatPartitions(@{$o->{fstab}});
+ fs::mount_all([ grep { isExt2($_) || isSwap($_) } @{$o->{fstab}} ], $o->{prefix});
+ }
}
mkdir "$o->{prefix}/$_", 0755 foreach
qw(dev etc etc/sysconfig etc/sysconfig/console etc/sysconfig/network-scripts
- etc/sysconfig/network-scripts
home mnt root tmp var var/tmp var/lib var/lib/rpm);
}
@@ -543,9 +547,8 @@ sub main {
fs::write($o->{prefix}, $o->{fstab});
modules::write_conf("$o->{prefix}/etc/conf.modules", 'append');
- run_program::run("/usr/bin/postinstall2") if $o->{lnx4win};
-
- killCardServices();
+ install_any::lnx4win_postinstall() if $o->{lnx4win};
+ install_any::killCardServices();
log::l("installation complete, leaving");
print "\n" x 30;
@@ -561,11 +564,6 @@ sub main {
}
}
-sub killCardServices {
- my $pid = chop_(cat_("/tmp/cardmgr.pid"));
- $pid and kill(15, $pid); #- send SIGTERM
-}
-
#-######################################################################################
#- Wonderful perl :(
#-######################################################################################