From f57bdef76016607de3d96d3e8498c71b27490d50 Mon Sep 17 00:00:00 2001 From: Yuan Bai Date: Tue, 4 Dec 2018 15:47:49 +0800 Subject: [PATCH] update install new kernel doc (#5868) --- .../common/deployment/install_new_kernel.rst | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/source/guides/admin-guides/manage_clusters/common/deployment/install_new_kernel.rst b/docs/source/guides/admin-guides/manage_clusters/common/deployment/install_new_kernel.rst index f9af23d82..35b340e0b 100644 --- a/docs/source/guides/admin-guides/manage_clusters/common/deployment/install_new_kernel.rst +++ b/docs/source/guides/admin-guides/manage_clusters/common/deployment/install_new_kernel.rst @@ -4,9 +4,9 @@ Installing a New Kernel in the Diskless Image Note: This procedure assumes you are using xCAT 2.6.1 or later. -The kerneldir attribute in linuximage table can be used to assign a directory containing kernel RPMs that can be installed into diskless images. The default for kernerdir is /install/kernels. To add a new kernel, create a directory named under the kerneldir, and genimage will pick them up from there. +To add a new kernel, create a directory named under ``/install/kernels`` directory, and ``genimage`` will pick them up from there. -The following examples assume you have the kernel RPM in /tmp and is using the default value for kerneldir (/install/kernels). +The following examples assume you have the kernel RPM in ``/tmp`` and is using a new kernel in the directory ``/install/kernels/``. The RPM names below are only examples, substitute your specific level and architecture. @@ -20,6 +20,9 @@ For example, kernel-3.10.0-229.ael7b.ppc64le.rpm means kernelver=3.10.0-229.ael7 mkdir -p /install/kernels/3.10.0-229.ael7b.ppc64le cp /tmp/kernel-3.10.0-229.ael7b.ppc64le.rpm /install/kernels/3.10.0-229.ael7b.ppc64le createrepo /install/kernels/3.10.0-229.ael7b.ppc64le/ + +Append kernel directory ``/install/kernels/`` in ``pkgdir`` of specific osimage. :: + chdef -t osimage -p pkgdir=/install/kernels/3.10.0-229.ael7b.ppc64le/ Run genimage/packimage to update the image with the new kernel. @@ -45,6 +48,9 @@ The "4.6.ppc64le" is replaced with "4-ppc64le": :: cp /tmp/kernel-default-3.12.28-4.6.ppc64le.rpm /install/kernels/3.12.28-4-ppc64le/ cp /tmp/kernel-default-base-3.12.28-4.6.ppc64le.rpm /install/kernels/3.12.28-4-ppc64le/ cp /tmp/kernel-default-devel-3.12.28-4.6.ppc64le.rpm /install/kernels/3.12.28-4-ppc64le/ + +Append kernel directory ``/install/kernels/`` in ``pkgdir`` of specific osimage. :: + chdef -t osimage -p pkgdir=/install/kernels/3.12.28-4-ppc64le/ Run genimage/packimage to update the image with the new kernel.