From 86ee4d188f383937d6ac60784cd390c6d02145c4 Mon Sep 17 00:00:00 2001 From: Seth Jennings Date: Tue, 29 Apr 2014 13:33:02 -0500 Subject: [PATCH] update docs for Ubuntu support Signed-off-by: Seth Jennings --- README.md | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 591ba01..2d09925 100644 --- a/README.md +++ b/README.md @@ -14,12 +14,12 @@ in production environments. **WARNING: Use with caution! Kernel crashes, spontaneous reboots, and data loss may occur!** - Installation ------------ -*NOTE: These installation instructions are currently Fedora-specific. Support -for other distributions is planned soon.* +###Prerequisites + +####Fedora 20 Install the dependencies for compiling kpatch: @@ -35,10 +35,33 @@ Install the dependencies for the "kpatch-build" command: # optional, but highly recommended sudo yum install ccache +####Ubuntu 14.04 + +Install the dependencies for compiling kpatch: + + apt-get install make gcc libelf-dev + +*NOTE: Ensure you have libelf-dev version 0.158 or newer* + +Install the dependencies for the "kpatch-build" command: + + apt-get install dpkg-dev + apt-get build-dep linux + + # optional, but highly recommended + apt-get install ccache + +NOTE: While kpatch-build will build a module on Ubuntu, currently +the hot patch can't be loaded due to issue #156. + +###Build + Compile kpatch: make +###Install + OPTIONAL: Install kpatch to /usr/local: sudo make install