From 37dbc1632ff00c0be201686adc4e0515d194f26c Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Tue, 15 Sep 2009 13:26:49 +0000 Subject: remove extra device check (we always have a slash device, and it does not harm to re-set label if set already) --- draklive | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.1