aboutsummaryrefslogtreecommitdiffstats
path: root/disk-utils/sfdisk.c
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2019-09-04 14:51:02 +0200
committerKarel Zak <kzak@redhat.com>2019-09-04 14:54:54 +0200
commit6cd671d42798cb6f5746dfbe3dc84576836c2b00 (patch)
treee96e6f97399d137ec5b1a5a8c23ffb3b90728415 /disk-utils/sfdisk.c
parent03154d2cf25c1d5ce908da9e72d324004b8d5722 (diff)
downloadutil-linux-6cd671d42798cb6f5746dfbe3dc84576836c2b00.tar.gz
fdisk: cleanup wipe warning
Let's remove 'old' from the sentence, add man page reference to sfdisk. Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'disk-utils/sfdisk.c')
-rw-r--r--disk-utils/sfdisk.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/disk-utils/sfdisk.c b/disk-utils/sfdisk.c
index 37d652b2f9..7032929134 100644
--- a/disk-utils/sfdisk.c
+++ b/disk-utils/sfdisk.c
@@ -1476,13 +1476,15 @@ static void follow_wipe_mode(struct sfdisk *sf)
if (dowipe) {
if (!fdisk_is_ptcollision(sf->cxt)) {
- fdisk_info(sf->cxt, _("The old %s signature will be removed by a write command."),
- fdisk_get_collision(sf->cxt));
+ fdisk_warn(sf->cxt, _(
+ "The device contains '%s' signature and it will be removed by a write command. "
+ "See sfdisk(8) man page and --wipe option for more details."),
+ fdisk_get_collision(sf->cxt));
fputc('\n', stdout);
}
} else {
fdisk_warnx(sf->cxt, _(
- "The old %s signature may remain on the device. "
+ "The device contains '%s' signature and it may remain on the device. "
"It is recommended to wipe the device with wipefs(8) or "
"sfdisk --wipe, in order to avoid possible collisions."),
fdisk_get_collision(sf->cxt));