If a partition table was detected, but it had no partitions in it, a poorly worded error message was printed and further action halted. For partx -a, this gave an unnecessary error and for partx -u, prevented update from removing all partitions. Signed-off-by: Phillip Susi <psusi@xxxxxxxxxx> --- partx/partx.c | 6 ------ 1 files changed, 0 insertions(+), 6 deletions(-) diff --git a/partx/partx.c b/partx/partx.c index 50b0c20..f4f2db1 100644 --- a/partx/partx.c +++ b/partx/partx.c @@ -696,12 +696,6 @@ static blkid_partlist get_partlist(blkid_probe pr, printf(_("%s: partition table type '%s' detected\n"), device, blkid_parttable_get_type(tab)); - if (!blkid_partlist_numof_partitions(ls)) { - warnx(_("%s: %s partition table does not contains " - "usable partitions"), device, - blkid_parttable_get_type(tab)); - return NULL; - } return ls; } -- 1.7.5.4 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html