diff options
-rw-r--r-- | perl-install/install_any.pm | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm index 220986363..4d524c86e 100644 --- a/perl-install/install_any.pm +++ b/perl-install/install_any.pm @@ -548,24 +548,18 @@ sub setupFB { 1; } -sub hdInstallPath() { - my $tail = first(readlink("/tmp/image") =~ m|^/tmp/hdimage/(.*)|); - my $head = first(readlink("/tmp/hdimage") =~ m|$::prefix(.*)|); - $tail && ($head ? "$head/$tail" : "/mnt/hd/$tail"); -} - sub install_urpmi { my ($prefix, $method, $packages, $mediums) = @_; #- rare case where urpmi cannot be installed (no hd install path). - $method eq 'disk' && !hdInstallPath() and return; + $method eq 'disk' && !any::hdInstallPath() and return; my @cfg; foreach (sort { $a->{medium} <=> $b->{medium} } values %$mediums) { my $name = $_->{fakemedium}; if ($_->{ignored} || $_->{selected}) { my $dir = ($_->{prefix} || ${{ nfs => "file://mnt/nfs", - disk => "file:/" . hdInstallPath(), + disk => "file:/" . any::hdInstallPath(), ftp => $ENV{URLPREFIX}, http => $ENV{URLPREFIX}, cdrom => "removable://mnt/cdrom" }}{$method} || |