summaryrefslogtreecommitdiffstats
path: root/perl-install/diskdrake/interactive.pm
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mandriva.org>2009-03-18 17:35:41 +0000
committerPascal Terjan <pterjan@mandriva.org>2009-03-18 17:35:41 +0000
commit80bb927591ba3249b38e5e7da8fddd28a45e948e (patch)
tree611ddd94f37055bd9e3e881986fc057f6f435b90 /perl-install/diskdrake/interactive.pm
parentb1ec22fdf3c6be460b6759d79433e81fea593da3 (diff)
downloaddrakx-80bb927591ba3249b38e5e7da8fddd28a45e948e.tar
drakx-80bb927591ba3249b38e5e7da8fddd28a45e948e.tar.gz
drakx-80bb927591ba3249b38e5e7da8fddd28a45e948e.tar.bz2
drakx-80bb927591ba3249b38e5e7da8fddd28a45e948e.tar.xz
drakx-80bb927591ba3249b38e5e7da8fddd28a45e948e.zip
diskdrake:
o write partition table if needed before setting label o fix setting label on not yet formatted partition
Diffstat (limited to 'perl-install/diskdrake/interactive.pm')
-rw-r--r--perl-install/diskdrake/interactive.pm9
1 files changed, 7 insertions, 2 deletions
diff --git a/perl-install/diskdrake/interactive.pm b/perl-install/diskdrake/interactive.pm
index b899a2038..990920ab7 100644
--- a/perl-install/diskdrake/interactive.pm
+++ b/perl-install/diskdrake/interactive.pm
@@ -615,8 +615,13 @@ sub Label {
my ($in, $_hd, $part) = @_;
my $new_label = $part->{device_LABEL} || "";
- $in->ask_from(N("Set volume label"), N("Beware, this will be written to disk as soon as you validate!"),
- [
+ write_partitions($in, $_hd) or return;
+
+ $in->ask_from(N("Set volume label"),
+ maybeFormatted($part) ?
+ N("Beware, this will be written to disk as soon as you validate!")
+ : N("Beware, this will be written to disk only after formatting!"),
+ [
{ label => N("Which volume label?"), title => 1 },
{ label => N("Label:"), val => \$new_label } ]) or return;