mirror of
https://github.com/dynup/kpatch
synced 2024-12-23 13:42:09 +00:00
change 'apply/remove' to 'load/unload'
After removing the distinction between 'enabled' modules and 'applied'
modules in 022e42bc
, we can change the 'apply' and 'remove' subcommands,
to more intuitive 'load' and 'unload' subcommands.
Signed-off-by: Seth Jennings <sjenning@redhat.com>
This commit is contained in:
parent
f3a4275ed8
commit
6655d00c60
@ -20,7 +20,7 @@
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA,
|
||||
# 02110-1301, USA.
|
||||
|
||||
# This is the kpatch user script that manages installing, applying, and
|
||||
# This is the kpatch user script that manages installing, loading, and
|
||||
# displaying information about kernel patch modules installed on the system.
|
||||
|
||||
KERNELRELEASE="$(uname -r)"
|
||||
@ -34,9 +34,9 @@ usage () {
|
||||
printf ' %-20s %s\n' "install <file>" "install hotpatch module to the kpatch DB" >&2
|
||||
printf ' %-20s %s\n' "uninstall <hotpatch>" "uninstall hotpatch module from the kpatch DB" >&2
|
||||
echo >&2
|
||||
printf ' %-20s %s\n' "apply --all" "apply all installed hotpatch modules to the running kernel" >&2
|
||||
printf ' %-20s %s\n' "apply <hotpatch>" "apply installed hotpatch module to the running kernel" >&2
|
||||
printf ' %-20s %s\n' "remove <hotpatch>" "remove hotpatch module from the running kernel" >&2
|
||||
printf ' %-20s %s\n' "load --all" "load all installed hotpatch modules to the running kernel" >&2
|
||||
printf ' %-20s %s\n' "load <hotpatch>" "load installed hotpatch module to the running kernel" >&2
|
||||
printf ' %-20s %s\n' "unload <hotpatch>" "unload hotpatch module from the running kernel" >&2
|
||||
echo >&2
|
||||
echo >&2
|
||||
printf ' %-20s %s\n' "info <hotpatch>" "show information about an installed hotpatch module" >&2
|
||||
@ -106,7 +106,7 @@ echo_patch_name() {
|
||||
unset MODULE
|
||||
[[ "$#" -gt 2 ]] || [[ "$#" -lt 1 ]] && usage
|
||||
case "$1" in
|
||||
"apply")
|
||||
"load")
|
||||
[[ "$#" -ne 2 ]] && usage
|
||||
case "$2" in
|
||||
"--all")
|
||||
|
14
man/kpatch.1
14
man/kpatch.1
@ -6,7 +6,7 @@ kpatch \- hot patch module management
|
||||
.SH SYNOPSIS
|
||||
kpatch <command> [<args>]
|
||||
.SH DESCRIPTION
|
||||
kpatch is a user script that manages installing, applying, and
|
||||
kpatch is a user script that manages installing, loading, and
|
||||
displaying information about kernel patch modules installed on
|
||||
the system.
|
||||
.SH OPTIONS
|
||||
@ -17,14 +17,14 @@ install <file>
|
||||
uninstall <hotpatch>
|
||||
uninstall hotpatch module from the kpatch DB
|
||||
|
||||
apply --all
|
||||
apply all enabled hotpatch modules to the running kernel
|
||||
load --all
|
||||
load all enabled hotpatch modules to the running kernel
|
||||
|
||||
apply <hotpatch>
|
||||
apply installed hotpatch module to the running kernel
|
||||
load <hotpatch>
|
||||
load installed hotpatch module to the running kernel
|
||||
|
||||
remove <hotpatch>
|
||||
remove hotpatch module from the running kernel
|
||||
unload <hotpatch>
|
||||
unload hotpatch module from the running kernel
|
||||
|
||||
info <hotpatch>
|
||||
show information about an installed hotpatch module
|
||||
|
Loading…
Reference in New Issue
Block a user