diff options
author | Olivier Blin <oblin@mandriva.com> | 2009-10-23 13:23:08 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2009-10-23 13:23:08 +0000 |
commit | 6e97019adc3aa592fa7d067dd488052a693d1b58 (patch) | |
tree | 36c0989fa5ee06d98c79c3ec87adbae5aecb1757 | |
parent | 29cea5264614f7bbfd0e652d764486ba4bb8c255 (diff) | |
download | drakiso-6e97019adc3aa592fa7d067dd488052a693d1b58.tar drakiso-6e97019adc3aa592fa7d067dd488052a693d1b58.tar.gz drakiso-6e97019adc3aa592fa7d067dd488052a693d1b58.tar.bz2 drakiso-6e97019adc3aa592fa7d067dd488052a693d1b58.tar.xz drakiso-6e97019adc3aa592fa7d067dd488052a693d1b58.zip |
supplement / partition label with default one if needed
-rw-r--r-- | lib/MDV/Draklive/Media.pm | 3 |
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; |