summaryrefslogtreecommitdiffstats
path: root/draklive
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-10-23 13:28:38 +0000
committerOlivier Blin <oblin@mandriva.com>2009-10-23 13:28:38 +0000
commitb53b453cbb33ddeb9e7b36af564b476282d4747d (patch)
treeaa87455123a7c00959bd1acdba5b52998d67d42a /draklive
parent6e97019adc3aa592fa7d067dd488052a693d1b58 (diff)
downloaddrakiso-b53b453cbb33ddeb9e7b36af564b476282d4747d.tar
drakiso-b53b453cbb33ddeb9e7b36af564b476282d4747d.tar.gz
drakiso-b53b453cbb33ddeb9e7b36af564b476282d4747d.tar.bz2
drakiso-b53b453cbb33ddeb9e7b36af564b476282d4747d.tar.xz
drakiso-b53b453cbb33ddeb9e7b36af564b476282d4747d.zip
set label at mkfs time
Diffstat (limited to 'draklive')
-rwxr-xr-xdraklive8
1 files changed, 1 insertions, 7 deletions
diff --git a/draklive b/draklive
index 0f1ad2a..a96b5bd 100755
--- a/draklive
+++ b/draklive
@@ -785,7 +785,7 @@ sub format_master {
my $inode_size = $media->get_media_setting('inode_size');
foreach my $part (@{$media->{partitions}}) {
set_part_real_device($hd, $part);
- MDV::Draklive::Utils::device_mkfs($part->{real_device}, $part->{fs_type}, $inode_size)
+ MDV::Draklive::Utils::device_mkfs($part->{real_device}, $part->{fs_type}, $part->{device_LABEL}, $inode_size)
or die "unable to format $part->{real_device} in $hd->{file}\n";
devices::del_loop($part->{real_device}) if -f $hd->{file};
}
@@ -1024,12 +1024,6 @@ sub record_harddisk_master {
my $hd = get_hd_from_file($media, $main_device);
supplement_media_partitions($media, $hd);
- if (my $label = !$opts->{boot_only} && $media->get_media_label) {
- my $slash_idx = $media->find_partition_index('/');
- my $slash = $media->{partitions}[$slash_idx];
- set_device_label($slash->{real_device}, $media->get_media_setting('fs'), $label);
- }
-
mkdir_p($live->{mnt});
foreach my $part (sort { $a->{mntpoint} cmp $b->{mntpoint} } @{$media->{partitions}}) {
set_part_real_device($hd, $part);