summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/install_any.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm
index b762b8f4f..5bf917ded 100644
--- a/perl-install/install_any.pm
+++ b/perl-install/install_any.pm
@@ -1003,6 +1003,8 @@ sub install_urpmi {
$removable_device = ($p->{mntpoint} || "/mnt/hd") . "/$iso_path";
} elsif ($curmethod eq 'cdrom') {
$removable_device = '/dev/cdrom';
+ my $p; $p = fs::get::mntpoint2part("/tmp/image", $::o->{fstab})
+ and $removable_device = $p->{device};
}
#- build a list file if needed.