summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-10-23 13:23:08 +0000
committerOlivier Blin <oblin@mandriva.com>2009-10-23 13:23:08 +0000
commit6e97019adc3aa592fa7d067dd488052a693d1b58 (patch)
tree36c0989fa5ee06d98c79c3ec87adbae5aecb1757 /lib
parent29cea5264614f7bbfd0e652d764486ba4bb8c255 (diff)
downloaddraklive-6e97019adc3aa592fa7d067dd488052a693d1b58.tar
draklive-6e97019adc3aa592fa7d067dd488052a693d1b58.tar.gz
draklive-6e97019adc3aa592fa7d067dd488052a693d1b58.tar.bz2
draklive-6e97019adc3aa592fa7d067dd488052a693d1b58.tar.xz
draklive-6e97019adc3aa592fa7d067dd488052a693d1b58.zip
supplement / partition label with default one if needed
Diffstat (limited to 'lib')
-rw-r--r--lib/MDV/Draklive/Media.pm3
1 files changed, 3 insertions, 0 deletions
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;