Developer-Guide: Update kernel installation doc

evged is required to make Kata work with NEMU.
Apply the kernel patch when building kernel.

Fixes: #268

Signed-off-by: Nitesh Konkar niteshkonkar@in.ibm.com
This commit is contained in:
nitkon
2018-10-14 16:15:33 +05:30
committed by GitHub
parent 82233b3e9b
commit 4296b457d1

View File

@@ -338,6 +338,7 @@ $ tar -xf ${kernel_tar_file}
$ mv .config "linux-${kernel_version}" $ mv .config "linux-${kernel_version}"
$ pushd "linux-${kernel_version}" $ pushd "linux-${kernel_version}"
$ curl -L https://raw.githubusercontent.com/kata-containers/packaging/master/kernel/patches/0001-NO-UPSTREAM-9P-always-use-cached-inode-to-fill-in-v9.patch | patch -p1 $ curl -L https://raw.githubusercontent.com/kata-containers/packaging/master/kernel/patches/0001-NO-UPSTREAM-9P-always-use-cached-inode-to-fill-in-v9.patch | patch -p1
$ curl -L https://raw.githubusercontent.com/kata-containers/packaging/master/kernel/patches/0002-Compile-in-evged-always.patch | patch -p1
$ make ARCH=${kernel_dir} -j$(nproc) $ make ARCH=${kernel_dir} -j$(nproc)
$ kata_kernel_dir="/usr/share/kata-containers" $ kata_kernel_dir="/usr/share/kata-containers"
$ kata_vmlinuz="${kata_kernel_dir}/kata-vmlinuz-${kernel_version}.container" $ kata_vmlinuz="${kata_kernel_dir}/kata-vmlinuz-${kernel_version}.container"