Bug 966558 - growpart" spits out a non-fatal error message on systems where partx does not support the "--help" option.
Summary: growpart" spits out a non-fatal error message on systems where partx does not...
Keywords:
Status: CLOSED DUPLICATE of bug 966574
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: cloud-utils
Version: el6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Juerg Haefliger
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-23 13:34 UTC by Jan van Eldik
Modified: 2013-11-22 09:50 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-11-22 09:50:40 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jan van Eldik 2013-05-23 13:34:50 UTC
"growpart" spits out a non-fatal error message on systems where
partx does not support the "--help" option.

# /usr/bin/growpart /dev/vda 1
partx: unrecognized option '--help'
unknown option

This is with:

# rpm -qf /usr/bin/growpart
cloud-utils-0.27-3.el6.noarch

A trivial patch quiesces the script:

--- /usr/bin/growpart   2013-05-23 15:26:15.585033492 +0200
+++ /usr/bin/growpart-  2013-05-23 15:26:41.795992384 +0200
@@ -448,7 +448,7 @@
        fi
 
        if command -v partx >/dev/null 2>&1; then
-               partx --help 2>/dev/null | grep -q -- --update || {
+               partx --help | grep -q -- --update || {
                        reason="partx has no '--update' flag in usage."
                        found="off"
                }

Comment 1 Jan van Eldik 2013-05-23 13:36:29 UTC
I meant to open this bug against the cloud-utils package, sorry...

Comment 2 Juerg Haefliger 2013-11-22 09:50:40 UTC

*** This bug has been marked as a duplicate of bug 966574 ***


Note You need to log in before you can comment on or make changes to this bug.