Blob Blame History Raw
From fba38ca1d557af557ecf64e1c64613c765a204a3 Mon Sep 17 00:00:00 2001
From: Lars Kellogg-Stedman <lars@redhat.com>
Date: Mon, 17 Mar 2014 17:12:36 -0400
Subject: [PATCH] suppress partx usage error

---
 bin/growpart | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/growpart b/bin/growpart
index 85c2d1f..595c40b 100755
--- a/bin/growpart
+++ b/bin/growpart
@@ -448,7 +448,7 @@ verify_ptupdate() {
 	fi
 
 	if command -v partx >/dev/null 2>&1; then
-		partx --help | grep -q -- --update || {
+		partx --help 2>/dev/null | grep -q -- --update || {
 			reason="partx has no '--update' flag in usage."
 			found="off"
 		}