]> git.ipfire.org Git - thirdparty/util-linux.git/commit
sfdisk: add --wipe-partitions=auto|never|default
authorKarel Zak <kzak@redhat.com>
Wed, 4 May 2016 10:43:35 +0000 (12:43 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 4 May 2016 10:47:17 +0000 (12:47 +0200)
commit3d6db3fdb1382fa2eb33cd7bccb27f6daaaf10ee
tree63bfabb829dc0dea6c19a12f4e10073a86060f44
parentba465623d84b9e330f248a477d078b5f280b7943
sfdisk: add --wipe-partitions=auto|never|default

The option allows to remove filesystes/RAIDs from newly created
partitions before the partition table is updated (and partition
device created).

The default is "auto" in this case wipe is enabled in interactive mode
only and user's confirmation (yes/no dialog) is required. Note that
keep filesystem signature on partition is pretty valid use-case, so we
don't erase anything by default.

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