summaryrefslogtreecommitdiffstats
path: root/perl-install/install
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-05-23 18:26:31 +0000
committerThierry Vignaud <tv@mageia.org>2012-05-23 18:26:31 +0000
commit538cdf4ac8ff71998e87735d1ea338721dfa1f1a (patch)
tree123436e6d1877bc438d24347225d9ed5dda7e383 /perl-install/install
parentcfc6b7bb6074be9c5dfc4d7cf684601c7d4e5b2a (diff)
downloaddrakx-538cdf4ac8ff71998e87735d1ea338721dfa1f1a.tar
drakx-538cdf4ac8ff71998e87735d1ea338721dfa1f1a.tar.gz
drakx-538cdf4ac8ff71998e87735d1ea338721dfa1f1a.tar.bz2
drakx-538cdf4ac8ff71998e87735d1ea338721dfa1f1a.tar.xz
drakx-538cdf4ac8ff71998e87735d1ea338721dfa1f1a.zip
better flow
Diffstat (limited to 'perl-install/install')
-rw-r--r--perl-install/install/install2.pm8
1 files changed, 5 insertions, 3 deletions
diff --git a/perl-install/install/install2.pm b/perl-install/install/install2.pm
index 6f552dc2e..affc65620 100644
--- a/perl-install/install/install2.pm
+++ b/perl-install/install/install2.pm
@@ -434,9 +434,11 @@ sub main {
eval { fs::mount::mount('none', '/sys', 'sysfs', 1) };
eval { touch('/root/non-chrooted-marker.DrakX') }; #- helps distinguishing /root and /mnt/root when we don't know if we are chrooted
- start_udev() if !$::local_install;
-
- init_local_install($o) if $::local_install;
+ if ($::local_install) {
+ init_local_install($o);
+ } else {
+ start_udev();
+ }
$o->{prefix} = $::prefix = $::testing ? "/tmp/test-perl-install" : "/mnt";
mkdir $::prefix, 0755;