summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-08-04 00:29:06 +0000
committerOlivier Blin <oblin@mandriva.com>2009-08-04 00:29:06 +0000
commitf0776f8d92c5cdf381b0aab1b81ee5a96ef1b5ef (patch)
tree15f0dc132fae0a88dd86afeed03f21335aacfba4 /lib
parenta6b0019b280a33c616cb92f2d393959c4fadd049 (diff)
downloaddraklive-f0776f8d92c5cdf381b0aab1b81ee5a96ef1b5ef.tar
draklive-f0776f8d92c5cdf381b0aab1b81ee5a96ef1b5ef.tar.gz
draklive-f0776f8d92c5cdf381b0aab1b81ee5a96ef1b5ef.tar.bz2
draklive-f0776f8d92c5cdf381b0aab1b81ee5a96ef1b5ef.tar.xz
draklive-f0776f8d92c5cdf381b0aab1b81ee5a96ef1b5ef.zip
preset fs_type for OEM_RESCUE partition too
Diffstat (limited to 'lib')
-rw-r--r--lib/MDV/Draklive/Media.pm7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/MDV/Draklive/Media.pm b/lib/MDV/Draklive/Media.pm
index 4dcc403..6c7b935 100644
--- a/lib/MDV/Draklive/Media.pm
+++ b/lib/MDV/Draklive/Media.pm
@@ -62,10 +62,13 @@ sub supplement_partitions {
$media->{partitions} ||= [ { mntpoint => '/' } ];
- my $slash = find { $_->{mntpoint} eq '/' } @{$media->{partitions}};
- $slash->{fs_type} ||= $media->get_media_setting('fs');
+ for $mntpoint (qw(/ OEM_RESCUE)) {
+ my $part = find { $_->{mntpoint} eq $mntpoint } @{$media->{partitions}};
+ $part->{fs_type} ||= $media->get_media_setting('fs');
+ }
my $correction = 1.2;
+ my $slash = find { $_->{mntpoint} eq '/' } @{$media->{partitions}};
$slash->{size} ||= int($total_size * $correction) / $common::SECTORSIZE;
}