summaryrefslogtreecommitdiffstats
path: root/perl-install/diskdrake/interactive.pm
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mandriva.org>2010-03-31 09:36:24 +0000
committerPascal Terjan <pterjan@mandriva.org>2010-03-31 09:36:24 +0000
commitd22f56232a1e1c927254f4d45359eb77ea5ccb15 (patch)
treeb575a0b6d29d90eb6da55e8718b2a82edfe19d89 /perl-install/diskdrake/interactive.pm
parentf8c3317b9eab539c2ba720d744cf697619f9a5a3 (diff)
downloaddrakx-d22f56232a1e1c927254f4d45359eb77ea5ccb15.tar
drakx-d22f56232a1e1c927254f4d45359eb77ea5ccb15.tar.gz
drakx-d22f56232a1e1c927254f4d45359eb77ea5ccb15.tar.bz2
drakx-d22f56232a1e1c927254f4d45359eb77ea5ccb15.tar.xz
drakx-d22f56232a1e1c927254f4d45359eb77ea5ccb15.zip
use device label even if it was not changed (#47456)
Diffstat (limited to 'perl-install/diskdrake/interactive.pm')
-rw-r--r--perl-install/diskdrake/interactive.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/diskdrake/interactive.pm b/perl-install/diskdrake/interactive.pm
index b103eae2d..3f242f3ba 100644
--- a/perl-install/diskdrake/interactive.pm
+++ b/perl-install/diskdrake/interactive.pm
@@ -638,10 +638,10 @@ sub Label {
{ label => N("Label:"), val => \$new_label } ]) or return;
fs::format::check_package_is_installed_label($in->do_pkgs, $part->{fs_type}) or return;
+ $part->{prefer_device_LABEL} = to_bool($part->{device_LABEL}) && !isLVM($part);
return if $new_label eq $part->{device_LABEL};
$part->{device_LABEL} = $new_label;
$part->{device_LABEL_changed} = 1;
- $part->{prefer_device_LABEL} = to_bool($part->{device_LABEL}) && !isLVM($part);
fs::format::clean_label($part);
fs::format::write_label($part);
}