summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-09-15 13:26:49 +0000
committerOlivier Blin <oblin@mandriva.com>2009-09-15 13:26:49 +0000
commit37dbc1632ff00c0be201686adc4e0515d194f26c (patch)
tree1b5ff126938373b83f9782e0d0d796b67f64d1ca
parent9fe0db1ef378c47eb80a4624b19fecb799d6b43a (diff)
downloaddrakiso-37dbc1632ff00c0be201686adc4e0515d194f26c.tar
drakiso-37dbc1632ff00c0be201686adc4e0515d194f26c.tar.gz
drakiso-37dbc1632ff00c0be201686adc4e0515d194f26c.tar.bz2
drakiso-37dbc1632ff00c0be201686adc4e0515d194f26c.tar.xz
drakiso-37dbc1632ff00c0be201686adc4e0515d194f26c.zip
remove extra device check (we always have a slash device, and it does not harm to re-set label if set already)
-rwxr-xr-xdraklive2
1 files changed, 1 insertions, 1 deletions
diff --git a/draklive b/draklive
index 031ad3a..839ef3f 100755
--- a/draklive
+++ b/draklive
@@ -1014,7 +1014,7 @@ sub record_harddisk_master {
or die "unable to mount $part->{real_device}\n";
}
- if (my $label = !$opts->{boot_only} && $opts->{device} && $media->get_media_label) {
+ 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);