summaryrefslogtreecommitdiffstats
path: root/disk-utils/cfdisk.c
diff options
context:
space:
mode:
authorBenno Schulenberg2015-02-08 21:21:28 +0100
committerKarel Zak2015-02-10 12:23:15 +0100
commit5088d642dd71accbf9e6b5c4d7db00058c705b8b (patch)
treecba05549a1d8f92ddf3a61ebf09065480981ccbf /disk-utils/cfdisk.c
parentMerge branch 'hwman' of github.com:jwpi/util-linux (diff)
downloadkernel-qcow2-util-linux-5088d642dd71accbf9e6b5c4d7db00058c705b8b.tar.gz
kernel-qcow2-util-linux-5088d642dd71accbf9e6b5c4d7db00058c705b8b.tar.xz
kernel-qcow2-util-linux-5088d642dd71accbf9e6b5c4d7db00058c705b8b.zip
cfdisk: do not startle the user with a false message when --zero is used
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Diffstat (limited to 'disk-utils/cfdisk.c')
-rw-r--r--disk-utils/cfdisk.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/disk-utils/cfdisk.c b/disk-utils/cfdisk.c
index d4e533f03..79bbbd5b1 100644
--- a/disk-utils/cfdisk.c
+++ b/disk-utils/cfdisk.c
@@ -1774,8 +1774,9 @@ static int ui_create_label(struct cfdisk *cf)
}
erase();
- ui_center(ui_lines - 4,
- _("Device does not contain a recognized partition table."));
+ if (!cf->zero_start)
+ ui_center(ui_lines - 4,
+ _("Device does not contain a recognized partition table."));
ui_center(ui_lines - 3,
_("Select a type to create a new label or press 'L' to load script file."));