From 6e97019adc3aa592fa7d067dd488052a693d1b58 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Fri, 23 Oct 2009 13:23:08 +0000 Subject: supplement / partition label with default one if needed --- lib/MDV/Draklive/Media.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') diff --git a/lib/MDV/Draklive/Media.pm b/lib/MDV/Draklive/Media.pm index f950c88..9f071d0 100644 --- a/lib/MDV/Draklive/Media.pm +++ b/lib/MDV/Draklive/Media.pm @@ -15,6 +15,9 @@ sub new { for $mntpoint (qw(/ OEM_RESCUE)) { my $part = find { $_->{mntpoint} eq $mntpoint } @{$media->{partitions}}; $part->{fs_type} ||= $media->get_media_setting('fs'); + if (my $label = $mntpoint eq '/' && $media->get_media_label) { + $part->{device_LABEL} ||= $label; + } } $media; -- cgit v1.2.1