summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/install_any.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm
index a38246aeb..83c490a85 100644
--- a/perl-install/install_any.pm
+++ b/perl-install/install_any.pm
@@ -912,7 +912,7 @@ sub ejectCdrom {
if ($o_mountpoint) {
$cdrom = $o_cdrom || cat_("/proc/mounts") =~ m!(/dev/\S+)\s+(/mnt/cdrom|/tmp/image)! && $1;
} else {
- $cdrom = cat_("/proc/mounts") =~ m!(/dev/$o_cdrom)\s+(/mnt/cdrom|/tmp/image)! && $1;
+ $cdrom = cat_("/proc/mounts") =~ m!((?:/dev/)?$o_cdrom)\s+(/mnt/cdrom|/tmp/image)! && $1;
$o_mountpoint ||= $cdrom ? $2 || '/tmp/image' : '';
}
$cdrom ||= $o_cdrom;