summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/install_any.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm
index b045cda5c..cb5562244 100644
--- a/perl-install/install_any.pm
+++ b/perl-install/install_any.pm
@@ -440,6 +440,7 @@ sub selectSupplMedia {
(my $cdromdev) = detect_devices::cdroms();
$o->ask_warn('', N("No device found")), return 'error' if !$cdromdev;
$cdrom = $cdromdev->{device};
+ $cdrom =~ m,^/, or $cdrom = "/dev/$cdrom";
devices::make($cdrom);
ejectCdrom($cdrom);
if ($o->ask_okcancel('', N("Insert the CD"), 1)) {