summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}