summaryrefslogtreecommitdiffstats
path: root/perl-install/install_steps.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-05-30 06:32:24 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-05-30 06:32:24 +0000
commitc6bea4ae86c6843d9f32150a6cd29d24006cf105 (patch)
tree8ff49ba3618f34dbb0f5f653ec25269a9f2d8689 /perl-install/install_steps.pm
parent8d92bbc5bd3532828c89da38d0a08aab5b00be40 (diff)
downloaddrakx-c6bea4ae86c6843d9f32150a6cd29d24006cf105.tar
drakx-c6bea4ae86c6843d9f32150a6cd29d24006cf105.tar.gz
drakx-c6bea4ae86c6843d9f32150a6cd29d24006cf105.tar.bz2
drakx-c6bea4ae86c6843d9f32150a6cd29d24006cf105.tar.xz
drakx-c6bea4ae86c6843d9f32150a6cd29d24006cf105.zip
make drakx-in-chroot work
Diffstat (limited to 'perl-install/install_steps.pm')
-rw-r--r--perl-install/install_steps.pm10
1 files changed, 10 insertions, 0 deletions
diff --git a/perl-install/install_steps.pm b/perl-install/install_steps.pm
index 2aa5e9643..7749aa851 100644
--- a/perl-install/install_steps.pm
+++ b/perl-install/install_steps.pm
@@ -201,6 +201,14 @@ sub doPartitionDisksAfter {
if !$o->{isUpgrade};
$o->{fstab} = [ fs::get::fstab($o->{all_hds}) ];
+
+ if ($::local_install) {
+ my $p = fs::get::mntpoint2part($::prefix, [ fs::read_fstab('', '/proc/mounts') ]);
+ my $part = fs::get::device2part($p->{device}, $o->{fstab});
+ $part->{mntpoint} = '/';
+ $part->{isMounted} = 1;
+ }
+
fs::get::root_($o->{fstab}) or die "Oops, no root partition";
if (arch() =~ /ppc/ && detect_devices::get_mac_generation() =~ /NewWorld/) {
@@ -262,6 +270,8 @@ sub rebootNeeded($) {
sub choosePartitionsToFormat($$) {
my ($_o, $fstab) = @_;
+ return if $::local_install;
+
foreach (@$fstab) {
$_->{mntpoint} = "swap" if isSwap($_);
$_->{mntpoint} or next;