]> git.ipfire.org Git - thirdparty/util-linux.git/commit - disk-utils/sfdisk.c
sfdisk: add --wipe
authorKarel Zak <kzak@redhat.com>
Thu, 18 Feb 2016 11:57:13 +0000 (12:57 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 18 Feb 2016 11:58:12 +0000 (12:58 +0100)
commit15b5e942f2c159db8f726079573bb77cdad560ed
tree9bed09b92c12888d782a9bdd75e7e6e471d54afa
parentcb9a4b0033eca429689a403be2a192fe2842f2e9
sfdisk: add --wipe

This patch changes sfdisk behavior and it wipes foreign signatures
from the device to avoid collisions. The wipe functionality is
automatically enabled in the interactive mode only (user is always
warned about it), otherwise it's possible to control all by --wipe
<auto|never|always>.

The program does not change behavior when executed in scripts (echo
<something> | sfdisk), the option "--wipe=always" is required to enable
in this case.

Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/sfdisk.8
disk-utils/sfdisk.c