diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2004-09-06 08:29:04 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2004-09-06 08:29:04 +0000 |
commit | 40b9e49c8946a858a1848736a025bbd7c832a443 (patch) | |
tree | 577b4247c89b6fd2d20c84baa8650b6377a553d4 | |
parent | 92076d36e453a5f29cc822615133e6ff53c930b3 (diff) | |
download | drakx-40b9e49c8946a858a1848736a025bbd7c832a443.tar drakx-40b9e49c8946a858a1848736a025bbd7c832a443.tar.gz drakx-40b9e49c8946a858a1848736a025bbd7c832a443.tar.bz2 drakx-40b9e49c8946a858a1848736a025bbd7c832a443.tar.xz drakx-40b9e49c8946a858a1848736a025bbd7c832a443.zip |
handle pt_type, not only fs_type
-rw-r--r-- | perl-install/raid.pm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/perl-install/raid.pm b/perl-install/raid.pm index 4a113f5de..f2b18d421 100644 --- a/perl-install/raid.pm +++ b/perl-install/raid.pm @@ -187,8 +187,11 @@ sub get_existing { my $md_part = new($raids, device => $md, level => $raw_part->{level}, disks => \@mdparts); - my $fs_type = fs::type::fs_type_from_magic($md_part); - fs::type::set_fs_type($md_part, $fs_type || 'ext3'); + if (my $type = fs::type::type_subpart_from_magic($md_part)) { + put_in_hash($md_part, $type); + } else { + fs::type::set_fs_type($md_part, 'ext3'); + } fs::type::set_isFormatted($md_part, to_bool($fs_type)); log::l("RAID: found $md (raid $md_part->{level}) type $fs_type with parts $raw_part->{devices}"); |