diff options
Diffstat (limited to 'perl-install/fs.pm')
-rw-r--r-- | perl-install/fs.pm | 4 |
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; } |