readme: recommend use of the kpatch utility

The kpatch utility is now user friendly enough that it can be used
instead of direct insmods.  We should encourage people to use it, since
we will soon be adding user space functionality above and beyond
insmod/rmmod when loading and unloading.
This commit is contained in:
Josh Poimboeuf 2014-04-21 21:43:57 -05:00
parent ed31d7af3d
commit d1d79084a3

View File

@ -39,10 +39,13 @@ Compile kpatch:
make
Install kpatch to /usr/local:
OPTIONAL: Install kpatch to /usr/local:
sudo make install
Alternatively, the kpatch and kpatch-build scripts can be run directly from the
git tree.
Quick start
-----------
@ -51,10 +54,6 @@ Quick start
kernel on any distribution, the "kpatch-build" command currently
only works on Fedora.*
Load the kpatch core module:
sudo insmod /usr/local/lib/modules/$(uname -r)/kpatch/kpatch.ko
Make a source patch against the kernel tree:
# from a kernel git tree:
@ -67,7 +66,7 @@ Build the patch module:
This outputs a patch module named `kpatch-foo.ko` in the current
directory. Now apply it to the running kernel:
sudo insmod kpatch-foo.ko
sudo kpatch load kpatch-foo.ko
Done! The kernel is now patched.