RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1104081 - `kpatch unload` gives confusing message with unsupported parameter
Summary: `kpatch unload` gives confusing message with unsupported parameter
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: kpatch
Version: 7.1
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: rc
: ---
Assignee: Josh Poimboeuf
QA Contact: Linqing Lu
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-06-03 09:03 UTC by Linqing Lu
Modified: 2015-03-05 13:40 UTC (History)
1 user (show)

Fixed In Version: kpatch-0.1.8-1.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-03-05 13:40:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:0296 0 normal SHIPPED_LIVE kpatch bug fix and enhancement update 2015-03-05 17:33:13 UTC

Description Linqing Lu 2014-06-03 09:03:30 UTC
Description of problem:
While running `kpatch unload` with unsupported parameter (such as "--all"), it give confusing warning message:

# kpatch unload --all
basename: unrecognized option '--all'
Try 'basename --help' for more information.
unloading patch module: 
basename: unrecognized option '--all'
Try 'basename --help' for more information.
rmmod: ERROR: Module  is builtin.
kpatch: failed to unload patch --all

Version-Release number of selected component (if applicable):
kpatch-0.1.2-1.el7_0.noarch.rpm

Comment 2 Josh Poimboeuf 2014-06-03 19:42:00 UTC
Fixed upstream with https://github.com/dynup/kpatch/pull/231.

Comment 4 Linqing Lu 2014-07-16 03:02:36 UTC
Verified it's fix in kpatch-0.1.8-1.el7.noarch. Normal usage info will be given as expected.

------------------------------------------------
# rpm -q kpatch
kpatch-0.1.8-1.el7.noarch

# kpatch unload --all
usage: kpatch <command> [<args>]

Valid commands:
   install [-k|--kernel-version=<kernel version>] <module>
      install patch module to the initrd to be loaded at boot
   uninstall [-k|--kernel-version=<kernel version>] <module>
      uninstall patch module from the initrd

   load --all          
      load all installed patch modules into the running kernel
   load <module>       
      load patch module into the running kernel
   replace <module>    
      load patch module into the running kernel, replacing all other modules
   unload <module>     
      unload patch module from the running kernel

   info <module>       
      show information about a patch module

   list                
      list installed patch modules

Comment 6 errata-xmlrpc 2015-03-05 13:40:23 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-0296.html


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