kpmcore/src/plugins/sfdisk
Michael Weghorn 813e574001 Wipe existing signatures when creating partition table
As the sfdisk man page says on the option '--wipe' that
specifies whether or not to wipe signatures in order
to avoid collisions:

> When this option is not given, the default is auto,
> in which case signatures are wiped only when in interactive mode

but sfdisk is not run in interactive mode here, since
stdin does not refer to a terminal, and the sfdisk
man page says:

> It [i.e. sfdisk] runs in interactive mode if executed on terminal
> (stdin refers to a terminal).

Therefore, explicitly pass the '--wipe=always' option to
sfdisk so that old signatures are wiped when a new partition
table is created.

Bug: 431628
2021-01-15 09:53:20 +01:00
..
CMakeLists.txt SPDX licenses for tests and CMakeLists.txt. 2020-09-17 02:15:16 +01:00
pmsfdiskbackendplugin.json SVN_SILENT made messages (.desktop file) - always resolve ours 2020-06-18 05:48:51 +02:00
sfdiskbackend.cpp Return QByteArray instead of bool in readData. 2020-11-29 23:34:29 +00:00
sfdiskbackend.h Make plugins compatible to latest KPluginFactory code 2020-11-16 17:14:52 +01:00
sfdiskdevice.cpp Wipe existing signatures when creating partition table 2021-01-15 09:53:20 +01:00
sfdiskdevice.h Remove unnecessary semicolon (-Wpedantic). 2020-10-24 16:29:09 +01:00
sfdiskgptattributes.cpp REUSE: SPDX style license headers for src/plugins. 2020-09-30 23:58:54 +01:00
sfdiskgptattributes.h REUSE: SPDX style license headers for src/plugins. 2020-09-30 23:58:54 +01:00
sfdiskpartitiontable.cpp REUSE: SPDX style license headers for src/util. 2020-10-01 00:33:19 +01:00
sfdiskpartitiontable.h REUSE: SPDX style license headers for src/plugins. 2020-09-30 23:58:54 +01:00