summaryrefslogtreecommitdiffstats
path: root/perl-install/install_any.pm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-03-15 17:34:42 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-03-15 17:34:42 +0000
commitb1195bf4d4368378aa0b42ceabd16528f64e15e4 (patch)
treefff57097d9c3dd0a64d59a5cd4b63c8a9e55e0c4 /perl-install/install_any.pm
parent38ee09c12951a64a51d5175714fcfd3fa11a2d18 (diff)
downloaddrakx-b1195bf4d4368378aa0b42ceabd16528f64e15e4.tar
drakx-b1195bf4d4368378aa0b42ceabd16528f64e15e4.tar.gz
drakx-b1195bf4d4368378aa0b42ceabd16528f64e15e4.tar.bz2
drakx-b1195bf4d4368378aa0b42ceabd16528f64e15e4.tar.xz
drakx-b1195bf4d4368378aa0b42ceabd16528f64e15e4.zip
Fix cdrom device name
Diffstat (limited to 'perl-install/install_any.pm')
-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)) {