wipefs: force GPT detection
The library libblkid (as well as fdisks) requires protective MBR when probe for GPT by default. This is unnecessary for wipefs where we're more promiscuous and we want to delete as much as possible. This patch enables BLKID_PARTS_FORCE_GPT for wipefs. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1326474 Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
b6abdc22f4
commit
949e5c9600
|
@ -261,8 +261,8 @@ new_probe(const char *devname, int mode)
|
||||||
BLKID_SUBLKS_BADCSUM); /* accept bad checksums */
|
BLKID_SUBLKS_BADCSUM); /* accept bad checksums */
|
||||||
|
|
||||||
blkid_probe_enable_partitions(pr, 1);
|
blkid_probe_enable_partitions(pr, 1);
|
||||||
blkid_probe_set_partitions_flags(pr, BLKID_PARTS_MAGIC);
|
blkid_probe_set_partitions_flags(pr, BLKID_PARTS_MAGIC |
|
||||||
|
BLKID_PARTS_FORCE_GPT);
|
||||||
return pr;
|
return pr;
|
||||||
error:
|
error:
|
||||||
blkid_free_probe(pr);
|
blkid_free_probe(pr);
|
||||||
|
|
Loading…
Reference in New Issue