From 2c8564b492d004422b3f597b6c30382f644e9db7 Mon Sep 17 00:00:00 2001 From: Yuan Bai Date: Tue, 4 Jul 2017 16:08:34 +0800 Subject: [PATCH] fix new doc for diskful new kernel patch (#3381) * diskful kernel patch * enhanced based on comments --- .../common/deployment/use_kernel_patch.rst | 24 +++++++++++++++++++ .../ppc64le/diskful/customize_image/index.rst | 1 + .../customize_image/use_kernel_patch.rst | 2 ++ 3 files changed, 27 insertions(+) create mode 100644 docs/source/guides/admin-guides/manage_clusters/common/deployment/use_kernel_patch.rst create mode 100644 docs/source/guides/admin-guides/manage_clusters/ppc64le/diskful/customize_image/use_kernel_patch.rst diff --git a/docs/source/guides/admin-guides/manage_clusters/common/deployment/use_kernel_patch.rst b/docs/source/guides/admin-guides/manage_clusters/common/deployment/use_kernel_patch.rst new file mode 100644 index 000000000..6ad4b7782 --- /dev/null +++ b/docs/source/guides/admin-guides/manage_clusters/common/deployment/use_kernel_patch.rst @@ -0,0 +1,24 @@ +Use new kernel patch +==================== + +This procedure assumes there are kernel RPM in /tmp, we take the osimage **rhels7.3-ppc64le-install-compute** as an example. +The RPM names below are only examples, substitute your specific level and architecture. + +* **[RHEL]** + +#. The RPM kernel package is usually named: kernel-.rpm. Append new kernel packages directory to osimage pkgdir :: + + mkdir -p /install/kernels/ + cp /tmp/kernel-*.rpm /install/kernels/ + createrepo /install/kernels// + chdef -t osimage rhels7.3-ppc64le-install-compute -p pkgdir=/install/kernels/ + +#. Inject the drivers from the new kernel RPMs into the initrd :: + + mkdef -t osdistroupdate kernelupdate dirpath=/install/kernels// + chdef -t osimage rhels7.3-ppc64le-install-compute osupdatename=kernelupdate + chdef -t osimage rhels7.3-ppc64le-install-compute netdrivers=updateonly + genitrd rhels7.3-ppc64le-install-compute --ignorekernelchk + nodeset osimage=rhels7.3-ppc64le-install-compute --noupdateinitrd + +#. Boot CN from net normallly. diff --git a/docs/source/guides/admin-guides/manage_clusters/ppc64le/diskful/customize_image/index.rst b/docs/source/guides/admin-guides/manage_clusters/ppc64le/diskful/customize_image/index.rst index 5b0cecea4..6a99eb8ac 100644 --- a/docs/source/guides/admin-guides/manage_clusters/ppc64le/diskful/customize_image/index.rst +++ b/docs/source/guides/admin-guides/manage_clusters/ppc64le/diskful/customize_image/index.rst @@ -11,6 +11,7 @@ Optional means all the subitems in this page are not necessary to finish an OS d pre_post_script.rst syncfile.rst additional_pkg.rst + use_kernel_patch.rst cfg_network_adapter.rst diff --git a/docs/source/guides/admin-guides/manage_clusters/ppc64le/diskful/customize_image/use_kernel_patch.rst b/docs/source/guides/admin-guides/manage_clusters/ppc64le/diskful/customize_image/use_kernel_patch.rst new file mode 100644 index 000000000..185ae7105 --- /dev/null +++ b/docs/source/guides/admin-guides/manage_clusters/ppc64le/diskful/customize_image/use_kernel_patch.rst @@ -0,0 +1,2 @@ +.. include:: ../../../common/deployment/use_kernel_patch.rst +