diff options
author | Benno Schulenberg | 2015-02-08 21:21:28 +0100 |
---|---|---|
committer | Karel Zak | 2015-02-10 12:23:15 +0100 |
commit | 5088d642dd71accbf9e6b5c4d7db00058c705b8b (patch) | |
tree | cba05549a1d8f92ddf3a61ebf09065480981ccbf /disk-utils/cfdisk.c | |
parent | Merge branch 'hwman' of github.com:jwpi/util-linux (diff) | |
download | kernel-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.c | 5 |
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.")); |