summaryrefslogtreecommitdiffstats
path: root/perl-install/install_steps.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2000-04-13 17:14:25 +0000
committerPascal Rigaux <pixel@mandriva.com>2000-04-13 17:14:25 +0000
commit2a709512915ed65978ec6d28c25f2de87c246cc1 (patch)
treec93afd80d971d1b42a6a24d0788bcdcafb67fe78 /perl-install/install_steps.pm
parent33876d96b93d796507af8dd46be3b9aba579d2b0 (diff)
downloaddrakx-backup-do-not-use-2a709512915ed65978ec6d28c25f2de87c246cc1.tar
drakx-backup-do-not-use-2a709512915ed65978ec6d28c25f2de87c246cc1.tar.gz
drakx-backup-do-not-use-2a709512915ed65978ec6d28c25f2de87c246cc1.tar.bz2
drakx-backup-do-not-use-2a709512915ed65978ec6d28c25f2de87c246cc1.tar.xz
drakx-backup-do-not-use-2a709512915ed65978ec6d28c25f2de87c246cc1.zip
no_comment
Diffstat (limited to 'perl-install/install_steps.pm')
-rw-r--r--perl-install/install_steps.pm9
1 files changed, 7 insertions, 2 deletions
diff --git a/perl-install/install_steps.pm b/perl-install/install_steps.pm
index 19affa768..5cf74d227 100644
--- a/perl-install/install_steps.pm
+++ b/perl-install/install_steps.pm
@@ -127,7 +127,7 @@ sub doPartitionDisks {
grep { isFat($_) } fsedit::get_fstab(@{$o->{hds}}) or die "wow, lnx4win with no fat partitions! hard times :(";
my $real_part = @l > 1 && $o->doPartitionDisksLnx4winDev(\@l) || $l[0];
- my $handle = loopback::inspect($real_part) or die _("This partition can't be used for loopback");
+ my $handle = loopback::inspect($real_part, '', 'rw') or die _("This partition can't be used for loopback");
my $size = loopback::getFree($handle->{dir}, $real_part);
my $max_linux = 1000 << 11; $max_linux *= 10 if $::expert;
@@ -138,7 +138,9 @@ sub doPartitionDisks {
$root->{size} = min($size - $swap->{size} - $min_freewin, $max_linux);
$o->doPartitionDisksLnx4winSize(\$root->{size}, \$swap->{size}, $size - 2 * $swap->{size}, 2 * $swap->{size});
-
+
+ unlink "$handle->{dir}$_" foreach "/lnx4win/swapfile", "/lnx4win/linuxsys.img";
+
push @{$real_part->{loopback}}, $root, $swap;
} else {
partition_table::write($_) foreach @$hds;
@@ -301,6 +303,9 @@ Consoles 1,3,4,7 may also contain interesting information";
#- call update-menus at the end of package installation
run_program::rooted($o->{prefix}, "update-menus");
+ #- mainly for auto_install's
+ run_program::rooted($o->{prefix}, "sh", "-c", $o->{postInstall}) if $o->{postInstall};
+
#- create /etc/sysconfig/desktop file according to user choice and presence of /usr/bin/kdm or /usr/bin/gdm.
my $f = "$o->{prefix}/etc/sysconfig/desktop";
if ($o->{compssUsersChoice}{KDE} && -x "$o->{prefix}/usr/bin/kdm") {