From f0776f8d92c5cdf381b0aab1b81ee5a96ef1b5ef Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Tue, 4 Aug 2009 00:29:06 +0000 Subject: preset fs_type for OEM_RESCUE partition too --- lib/MDV/Draklive/Media.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lib') 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; } -- cgit v1.2.1