summaryrefslogtreecommitdiffstats
path: root/perl-install/fs.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-02-13 11:37:17 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-02-13 11:37:17 +0000
commitccd328a91005d8942f6afb74880e018636ba573c (patch)
treee37ced6a8977666aa3276385126499e8fe1a199c /perl-install/fs.pm
parent648e175de516e58070c89fa691fcbce89192d4c5 (diff)
downloaddrakx-ccd328a91005d8942f6afb74880e018636ba573c.tar
drakx-ccd328a91005d8942f6afb74880e018636ba573c.tar.gz
drakx-ccd328a91005d8942f6afb74880e018636ba573c.tar.bz2
drakx-ccd328a91005d8942f6afb74880e018636ba573c.tar.xz
drakx-ccd328a91005d8942f6afb74880e018636ba573c.zip
- handle WORM type in /proc/scsi/scsi
- added media_type cdrom-burner - adapting to new media_type - nicer fd&hd testing
Diffstat (limited to 'perl-install/fs.pm')
-rw-r--r--perl-install/fs.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/fs.pm b/perl-install/fs.pm
index 5156a9c4c..e75970330 100644
--- a/perl-install/fs.pm
+++ b/perl-install/fs.pm
@@ -331,11 +331,11 @@ sub set_default_options {
if ($options->{supermount} && $is_auto) {
# this can't work, guessing :-(
- $part->{type} = fs2type($part->{media_type} eq 'cdrom' ? 'iso9660' : 'vfat');
+ $part->{type} = fs2type($part->{media_type} =~ /cdrom/ ? 'iso9660' : 'vfat');
$is_auto = 0;
}
- if ($part->{media_type} eq 'cdrom') {
+ if ($part->{media_type} =~ /cdrom/) {
$options->{ro} = 1;
}