From 12021356b311d99f3870f165564c5d4703cc70be Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Wed, 23 Mar 2005 19:02:52 +0000 Subject: temporarily fallback on /mnt/hd if the hard disk mount point can't be found --- perl-install/install_any.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'perl-install') diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm index 83c490a85..88a95b215 100644 --- a/perl-install/install_any.pm +++ b/perl-install/install_any.pm @@ -983,7 +983,8 @@ sub install_urpmi { my $dest = "/mnt/inst_iso"; $dir = "removable:/$dest/$_->{rpmsdir}"; -d "$::prefix$dest" or mkdir_p("$::prefix$dest"); - $removable_device = "$p->{mntpoint}/$iso_path"; + #- FIXME: don't use /mnt/hd but really try to find the mount point + $removable_device = ($p->{mntpoint} || "/mnt/hd") . "/$iso_path"; } elsif ($curmethod eq 'cdrom') { $removable_device = '/dev/cdrom'; } -- cgit v1.2.1