Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
elearning:workbooks:centos:8:avance:l115 [2024/10/03 09:34] – created adminelearning:workbooks:centos:8:avance:l115 [2024/11/08 12:39] (Version actuelle) admin
Ligne 334: Ligne 334:
 =====LAB #2 - Compilation et installation du noyau et des modules===== =====LAB #2 - Compilation et installation du noyau et des modules=====
  
-Activez le dépôt **CentOS-Linux-PowerTools** en passant la directive **enabled** à **1** :+Activez le dépôt **CentOS-Stream-PowerTools** en passant la directive **enabled** à **1** :
  
 <code> <code>
-[root@centos8 ~]# vi /etc/yum.repos.d/CentOS-Linux-PowerTools.repo  +[root@centos8 ~]# vi /etc/yum.repos.d/CentOS-Stream-PowerTools.repo  
-[root@centos8 ~]# cat /etc/yum.repos.d/CentOS-Linux-PowerTools.repo  +[root@centos8 ~]# cat /etc/yum.repos.d/CentOS-Stream-PowerTools.repo  
-# CentOS-Linux-PowerTools.repo+# CentOS-PowerTools.repo 
 +
 +# The mirror system uses the connecting IP address of the client and the 
 +# update status of each mirror to pick mirrors that are updated to and 
 +# geographically close to the client.  You should use this for CentOS updates 
 +# unless you are manually picking other mirrors. 
 +
 +# If the ###mirrorlist= does not work for you, as a fall back you can try the 
 +# remarked out baseurl= line instead.
 # #
-# The mirrorlist system uses the connecting IP address of the client and the 
-# update status of each mirror to pick current mirrors that are geographically 
-# close to the client.  You should use this for CentOS updates unless you are 
-# manually picking other mirrors. 
 # #
-# If the mirrorlist does not work for you, you can try the commented out 
-# baseurl line instead. 
  
-[powertools+[Stream-PowerTools
-name=CentOS Linux $releasever - PowerTools +name=CentOS-Stream - PowerTools 
-mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=PowerTools&infra=$infra +###mirrorlist=http://###mirrorlist.centos.org/?release=$stream&arch=$basearch&repo=PowerTools&infra=$infra 
-#baseurl=http://mirror.centos.org/$contentdir/$releasever/PowerTools/$basearch/os/+baseurl=http://vault.centos.org/$contentdir/$stream/PowerTools/$basearch/os/
 gpgcheck=1 gpgcheck=1
 enabled=1 enabled=1
Ligne 358: Ligne 360:
 </code> </code>
  
-Installez maintenant les paquets nécessaires :+Installez maintenant les paquets necéssaires :
  
 <code> <code>
 [root@centos8 ~]# dnf groupinstall "Development Tools" [root@centos8 ~]# dnf groupinstall "Development Tools"
 ... ...
-[root@centos8 ~]# dnf install asciidoc audit-libs-devel bash bc binutils binutils-devel bison diffutils elfutils elfutils-devel elfutils-libelf-devel findutils flex gawk gcc gettext gzip hmaccalc hostname make module-init-tools ncurses-devel net-tools newt-devel numactl-devel openssl patch pciutils-devel perl perl-ExtUtils-Embed pesign redhat-rpm-config rpm-build rpmdevtools sh-utils tar xmlto xz zlib-devel rpmdevtools+[root@centos8 ~]# dnf install asciidoc audit-libs-devel bash bc binutils binutils-devel bison diffutils elfutils elfutils-devel elfutils-libelf-devel findutils flex gawk gcc gettext gzip hmaccalc hostname make module-init-tools ncurses-devel net-tools newt-devel numactl-devel openssl patch pciutils-devel perl perl-ExtUtils-Embed pesign redhat-rpm-config rpm-build rpmdevtools sh-utils tar xmlto xz zlib-devel rpmdevtools clang dwarves java-devel kabi-dw libbabeltrace-devel libbpf-devel libcap-devel libmnl-devel libnl3-devel libtraceevent-devel llvm python3-devel python3-docutils
 ... ...
 </code> </code>
Ligne 594: Ligne 596:
  
 <code> <code>
-[trainee@centos8 ~]uname -a +[root@centos8 ~]uname -a 
-Linux centos8.ittraining.loc 4.18.0-305.7.1.el8_4.x86_64 #1 SMP Tue Jun 29 21:55:12 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux+Linux centos8.ittraining.loc 4.18.0-553.6.1.el8.x86_64 #1 SMP Thu May 30 04:13:58 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
  
-[trainee@centos8 ~]cat /etc/centos-release +[root@centos8 ~]cat /etc/centos-release 
-CentOS Linux release 8.4.2105+CentOS Stream release 8
  
-[trainee@centos8 ~]$ wget https://vault.centos.org/8.4.2105/BaseOS/Source/SPackages/kernel-4.18.0-305.7.1.el8_4.src.rpm +[trainee@centos8 ~]$ wget https://mirror.stream.centos.org/SIGs/8/kmods/source/kernels/kernel-4.18.0-553.16.1.el8_10.src.rpm
---2021-07-14 02:54:14--  https://vault.centos.org/8.4.2105/BaseOS/Source/SPackages/kernel-4.18.0-305.7.1.el8_4.src.rpm +
-Resolving vault.centos.org (vault.centos.org)... 81.171.33.194, 2a05:d014:10:7803:4af1:9320:7050:d28e +
-Connecting to vault.centos.org (vault.centos.org)|81.171.33.194|:443... connected. +
-HTTP request sent, awaiting response... 200 OK +
-Length: 123000617 (117M) [application/x-rpm] +
-Saving to: ‘kernel-4.18.0-305.7.1.el8_4.src.rpm’ +
- +
-kernel-4.18.0-305.7.1. 100%[===========================>] 117.30M  1.49MB/   in 79s      +
- +
-2021-07-14 02:55:33 (1.49 MB/s) - ‘kernel-4.18.0-305.7.1.el8_4.src.rpm’ saved [123000617/123000617]+
 </code> </code>
  
Ligne 622: Ligne 614:
 ... ...
  
-[root@centos8 ~]# yum-builddep /home/trainee/kernel-4.18.0-305.7.1.el8_4.src.rpm +[root@centos8 ~]# yum-builddep /home/trainee/kernel-4.18.0-553.16.1.el8_10.src.rpm
 ... ...
 </code> </code>
  
-Installez maintenant le paquet **kernel-4.18.0-305.7.1.el8_4.src.rpm** :+Installez maintenant le paquet **kernel-4.18.0-553.16.1.el8_10.src.rpm** :
  
 <code> <code>
 [root@centos8 ~]# exit [root@centos8 ~]# exit
 logout logout
-[trainee@centos8 ~]$ rpm -Uvh kernel-4.18.0-305.7.1.el8_4.src.rpm+[trainee@centos8 ~]$ rpm -Uvh kernel-4.18.0-553.16.1.el8_10.src.rpm
 Updating / installing... Updating / installing...
-   1:kernel-4.18.0-305.7.1.el8_4      warning: user mockbuild does not exist - using root+   1:kernel-4.18.0-553.16.1.el8_10      warning: user mockbuild does not exist - using root
 warning: group mockbuild does not exist - using root warning: group mockbuild does not exist - using root
 warning: user mockbuild does not exist - using root warning: user mockbuild does not exist - using root
Ligne 812: Ligne 804:
  
 <code> <code>
-[trainee@centos8 linux-4.18.0-305.7.1.el8.x86_64]$ cp configs/kernel-4.18.0-`uname -m`.config .config+[trainee@centos8 linux-4.18.0-553.16.1.el8.x86_64]$ cp configs/kernel-4.18.0-`uname -m`.config .config
 </code> </code>
  
Ligne 818: Ligne 810:
  
 <code> <code>
-[trainee@centos8 linux-4.18.0-305.7.1.el8.x86_64]$ make oldconfig+[trainee@centos8 linux-4.18.0-553.16.1.el8.x86_64]$ make oldconfig
 scripts/kconfig/conf  --oldconfig Kconfig scripts/kconfig/conf  --oldconfig Kconfig
 # #
Ligne 838: Ligne 830:
  
 <code> <code>
-[trainee@centos8 linux-4.18.0-305.7.1.el8.x86_64]$ make menuconfig+[trainee@centos8 linux-4.18.0-553.16.1.el8.x86_64]$ make menuconfig
   UPD     scripts/kconfig/.mconf-cfg   UPD     scripts/kconfig/.mconf-cfg
   HOSTCC  scripts/kconfig/mconf.o   HOSTCC  scripts/kconfig/mconf.o
Ligne 849: Ligne 841:
   HOSTLD  scripts/kconfig/mconf   HOSTLD  scripts/kconfig/mconf
 scripts/kconfig/mconf  Kconfig scripts/kconfig/mconf  Kconfig
-# 
-# using defaults found in /boot/config-4.18.0-305.7.1.el8_4.x86_64 
-# 
 </code> </code>
  
Ligne 877: Ligne 866:
  
 <code> <code>
-[trainee@centos8 linux-4.18.0-305.7.1.el8.x86_64]$ ls -a +[trainee@centos8 linux-4.18.0-553.16.1.el8.x86_64]$ ls -a 
-     certs          configs         Documentation  .get_maintainer.conf    .gitlab-ci.yml  Kbuild   LICENSES     Makefile.rhelver  README       security  virt +                      .gitattributes  Documentation   Makefile.rhelver  drivers   lib       tools 
-..     .clang-format  COPYING-4.18.0  drivers        .get_maintainer.ignore  include         Kconfig  .mailmap     .mismatches       samples      sound +..                      .gitlab-ci.yml  Kbuild          README            firmware  mm        usr 
-arch   .cocciconfig   CREDITS         firmware       .gitattributes          init            kernel   MAINTAINERS  mm                .scmversion  tools +.clang-format           .mailmap        Kconfig         arch              fs        net       virt 
-block  .config        crypto          fs             .gitlab-ci-private.yml  ipc             lib      Makefile     net               scripts      usr+.cocciconfig            .mismatches     Kconfig.redhat  block             include   samples 
 +.config                 .scmversion     LICENSES        certs             init      scripts 
 +.config.old             COPYING-4.18.0  MAINTAINERS     configs           ipc       security 
 +.get_maintainer.ignore  CREDITS         Makefile        crypto            kernel    sound
 </code> </code>
  
Ligne 887: Ligne 879:
  
 <code> <code>
-[trainee@centos8 linux-4.18.0-305.7.1.el8.x86_64]$ more .config+[trainee@centos8 linux-4.18.0-553.16.1.el8.x86_64]$ more .config
 # #
 # Automatically generated file; DO NOT EDIT. # Automatically generated file; DO NOT EDIT.
Ligne 894: Ligne 886:
  
 # #
-# Compiler: gcc (GCC) 8.4.1 20200928 (Red Hat 8.4.1-1)+# Compiler: gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-22)
 # #
 CONFIG_64BIT=y CONFIG_64BIT=y
Ligne 911: Ligne 903:
 CONFIG_GENERIC_ISA_DMA=y CONFIG_GENERIC_ISA_DMA=y
 CONFIG_GENERIC_BUG=y CONFIG_GENERIC_BUG=y
-CONFIG_GENERIC_BUG_RELATIVE_POINTERS=y 
-CONFIG_GENERIC_HWEIGHT=y 
-CONFIG_ARCH_MAY_HAVE_PC_FDC=y 
-CONFIG_GENERIC_CALIBRATE_DELAY=y 
-CONFIG_ARCH_HAS_CPU_RELAX=y 
-CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y 
-CONFIG_ARCH_HAS_FILTER_PGPROT=y 
-CONFIG_HAVE_SETUP_PER_CPU_AREA=y 
-CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y 
-CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y 
-CONFIG_ARCH_HIBERNATION_POSSIBLE=y 
-CONFIG_ARCH_SUSPEND_POSSIBLE=y 
-CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y 
-CONFIG_ARCH_WANT_GENERAL_HUGETLB=y 
-CONFIG_ZONE_DMA32=y 
-CONFIG_AUDIT_ARCH=y 
-CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING=y 
-CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y 
-CONFIG_HAVE_INTEL_TXT=y 
-CONFIG_X86_64_SMP=y 
 --More--(0%) --More--(0%)
 </code> </code>
Ligne 946: Ligne 918:
  
 <code> <code>
-[trainee@centos8 linux-4.18.0-305.7.1.el8.x86_64]$ more Makefile+[trainee@centos8 linux-4.18.0-553.16.1.el8.x86_64]$ more Makefile
 # SPDX-License-Identifier: GPL-2.0 # SPDX-License-Identifier: GPL-2.0
 VERSION = 4 VERSION = 4
Ligne 957: Ligne 929:
 # DRM backport version # DRM backport version
 # #
-RHEL_DRM_VERSION = 5 +RHEL_DRM_VERSION = 6 
-RHEL_DRM_PATCHLEVEL = 9 +RHEL_DRM_PATCHLEVEL = 3 
-RHEL_DRM_SUBLEVEL = 14+RHEL_DRM_SUBLEVEL =  
 +RHEL_DRM_EXTRAVERSION = 
  
 # *DOCUMENTATION* # *DOCUMENTATION*
Ligne 969: Ligne 942:
 # That's our default target when none is given on the command line # That's our default target when none is given on the command line
 PHONY := _all PHONY := _all
-_all: +--More--(0%)
- +
-# o Do not use make's built-in rules and variables +
-#   (this increases performance and avoids hard-to-debug behaviour); +
-# o Look for make include files relative to root of kernel src +
-MAKEFLAGS += -rR --include-dir=$(CURDIR) +
- +
-# Avoid funny character set dependencies +
-unexport LC_ALL +
-LC_COLLATE=C +
-LC_NUMERIC=C +
-export LC_COLLATE LC_NUMERIC +
- +
-# Avoid interference with shell env settings +
-unexport GREP_OPTIONS +
- +
-# Set RHEL variables +
-# Use this spot to avoid future merge conflicts +
-include Makefile.rhelver +
- +
-# We are using a recursive build, so we need to do a little thinking +
---Plus--(2%)+
 </code> </code>
  
Ligne 1002: Ligne 954:
  
 <code> <code>
-[trainee@centos8 linux-4.18.0-305.7.1.el8.x86_64]$ uname -i+[trainee@centos8 linux-4.18.0-553.16.1.el8.x86_64]$ uname -i
 x86_64 x86_64
-[trainee@centos8 linux-4.18.0-305.7.1.el8.x86_64]$ vi .config + 
-[trainee@centos8 linux-4.18.0-305.7.1.el8.x86_64]$ head .config+[trainee@centos8 linux-4.18.0-553.16.1.el8.x86_64]$ vi .config 
 + 
 +[trainee@centos8 linux-4.18.0-553.16.1.el8.x86_64]$ head .config
 # x86_64 # x86_64
 # #
Ligne 1013: Ligne 967:
  
 # #
-# Compiler: gcc (GCC) 8.4.1 20200928 (Red Hat 8.4.1-1)+# Compiler: gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-22)
 # #
 CONFIG_64BIT=y CONFIG_64BIT=y
Ligne 1021: Ligne 975:
  
 <code> <code>
-[trainee@centos8 linux-4.18.0-305.7.1.el8.x86_64]$ cp .config ~/rpmbuild/SOURCES/config-`uname -m`-generic +[trainee@centos8 linux-4.18.0-553.16.1.el8.x86_64]$ cp .config ~/rpmbuild/SOURCES/config-`uname -m`-generic 
-[trainee@centos8 linux-4.18.0-305.7.1.el8.x86_64]$ ls ~/rpmbuild/SOURCES + 
-centos-ca-secureboot.der  cpupower.config            filter-x86_64.sh                           kernel-s390x.config                mod-extra.list           Module.kabi_s390x +[trainee@centos8 linux-4.18.0-553.16.1.el8.x86_64]$ ls ~/rpmbuild/SOURCES 
-centos-dup.x509           cpupower.service           generate_all_configs.sh                    kernel-s390x-debug.config          mod-internal.list        Module.kabi_x86_64 +Module.kabi_aarch64      filter-s390x.sh                            linux-4.18.0-553.16.1.el8_10.tar.xz 
-centos-kpatch.x509        debrand-rh-i686-cpu.patch  generate_bls_conf.sh                       kernel-s390x-zfcpdump.config       mod-sign.sh              parallel_xz.sh +Module.kabi_dup_aarch64  filter-x86_64.sh                           linux-kernel-test.patch 
-centos.pem                debrand-rh_taint.patch     kernel-aarch64.config                      kernel-x86_64.config               Module.kabi_aarch64      process_configs.sh +Module.kabi_dup_ppc64le  gating.yaml                                mod-blacklist.sh 
-centossecureboot001.der   debrand-single-cpu.patch   kernel-aarch64-debug.config                kernel-x86_64-debug.config         Module.kabi_dup_aarch64  x509.genkey +Module.kabi_dup_s390x    generate_all_configs.sh                    mod-extra.list 
-centossecureboot201.der   filter-aarch64.sh          kernel-abi-stablelists-4.18.0-305.tar.bz2  kvm_stat.logrotate                 Module.kabi_dup_ppc64le +Module.kabi_dup_x86_64   generate_bls_conf.sh                       mod-internal.list 
-centossecurebootca2.der   filter-modules.sh          kernel-kabi-dw-4.18.0-305.tar.bz2          linux-4.18.0-305.7.1.el8_4.tar.xz  Module.kabi_dup_s390x +Module.kabi_ppc64le      kernel-aarch64-debug.config                mod-sign.sh 
-check-kabi                filter-ppc64le.sh          kernel-ppc64le.config                      linux-kernel-test.patch            Module.kabi_dup_x86_64 +Module.kabi_s390x        kernel-aarch64.config                      parallel_xz.sh 
-config-x86_64-generic     filter-s390x.sh            kernel-ppc64le-debug.config                mod-blacklist.sh                   Module.kabi_ppc64le+Module.kabi_x86_64       kernel-abi-stablelists-4.18.0-553.tar.bz2  process_configs.sh 
 +centossecureboot201.cer  kernel-kabi-dw-4.18.0-553.tar.bz2          redhatsecureboot302.cer 
 +centossecurebootca2.cer  kernel-ppc64le-debug.config                redhatsecureboot303.cer 
 +check-kabi               kernel-ppc64le.config                      redhatsecureboot501.cer 
 +config-x86_64-generic    kernel-s390x-debug.config                  redhatsecurebootca3.cer 
 +cpupower.config          kernel-s390x-zfcpdump.config               redhatsecurebootca7.cer 
 +cpupower.service         kernel-s390x.config                        rheldup3.x509 
 +filter-aarch64.sh        kernel-x86_64-debug.config                 rhelkpatch1.x509 
 +filter-modules.sh        kernel-x86_64.config                       rpminspect.yaml 
 +filter-ppc64le.sh        kvm_stat.logrotate                         x509.genkey
 </code> </code>
  
Ligne 1037: Ligne 1000:
  
 <code> <code>
-[trainee@centos8 linux-4.18.0-305.7.1.el8.x86_64]$ cp configs/* ~/rpmbuild/SOURCES/+[trainee@centos8 linux-4.18.0-553.16.1.el8.x86_64]$ cp configs/* ~/rpmbuild/SOURCES/
 </code> </code>
  
Ligne 1062: Ligne 1025:
 %define _binary_payload w3T.xzdio %define _binary_payload w3T.xzdio
  
-# For a kernel released for public testing, released_kernel should be 1. +%global distro_build 553
-# For internal testing builds during development, it should be 0. +
-%global released_kernel 1 +
- +
-%global distro_build 305+
  
 # Sign the x86_64 kernel for secure boot authentication # Sign the x86_64 kernel for secure boot authentication
-%ifarch x86_64 aarch64+%ifarch x86_64 aarch64 s390x ppc64le
 %global signkernel 1 %global signkernel 1
 %else %else
Ligne 1089: Ligne 1048:
 %endif %endif
  
-%define buildid .i2tch+%define buildid .ittraining
  
-%define rpmversion 4.18.0 +%define specversion 4.18.0 
-%define pkgrelease 305.7.1.el8_4+%define pkgrelease 553.16.1.el8_10
  
 # allow pkg_release to have configurable %%{?dist} tag # allow pkg_release to have configurable %%{?dist} tag
-%define specrelease 305.7.1%{?dist}+%define specrelease 553.16.1%{?dist}
  
 %define pkg_release %{specrelease}%{?buildid} %define pkg_release %{specrelease}%{?buildid}
 +
 +# libexec dir is not used by the linker, so the shared object there
 +# should not be exported to RPM provides
 +%global __provides_exclude_from ^%{_libexecdir}/kselftests
 </code> </code>
  
Ligne 1105: Ligne 1068:
  
 <code> <code>
-[trainee@centos7 SPECS]$ rpmbuild -bb --target=`uname -m` kernel.spec 2> build-err.log | tee build-out.log &+[trainee@centos8 SPECS]$ rpmbuild -bb --target=`uname -m` kernel.spec 2> build-err.log | tee build-out.log & 
 +[1] 96990 
 +[trainee@centos8 SPECS]$ Building target platforms: x86_64 
 +Building for target x86_64 
 +...
 </code> </code>
  
 <WRAP center round important 60%> <WRAP center round important 60%>
-**Important** - La compilation peut prendre des heures. Arrêtez donc le processus avec les touches ^C. Arrêtez ensuite votre VM. Demandez à votre formateur de démarrer la VM contenant le noyau déjà compilé.+**Important** - La compilation peut prendre des heures.
 </WRAP> </WRAP>
  
Ligne 1116: Ligne 1083:
 <code> <code>
 ... ...
-Wrote: /home/trainee/rpmbuild/RPMS/x86_64/kernel-4.18.0-305.7.1.el8.i2tch.x86_64.rpm +Wrote: /home/trainee/rpmbuild/RPMS/x86_64/kernel-4.18.0-553.16.1.el8.ittraining.x86_64.rpm 
-Wrote: /home/trainee/rpmbuild/RPMS/x86_64/kernel-headers-4.18.0-305.7.1.el8.i2tch.x86_64.rpm +...
-Wrote: /home/trainee/rpmbuild/RPMS/x86_64/kernel-cross-headers-4.18.0-305.7.1.el8.i2tch.x86_64.rpm +
-Wrote: /home/trainee/rpmbuild/RPMS/x86_64/kernel-debuginfo-common-x86_64-4.18.0-305.7.1.el8.i2tch.x86_64.rpm +
-Wrote: /home/trainee/rpmbuild/RPMS/x86_64/perf-4.18.0-305.7.1.el8.i2tch.x86_64.rpm +
-Wrote: /home/trainee/rpmbuild/RPMS/x86_64/perf-debuginfo-4.18.0-305.7.1.el8.i2tch.x86_64.rpm +
-Wrote: /home/trainee/rpmbuild/RPMS/x86_64/python3-perf-4.18.0-305.7.1.el8.i2tch.x86_64.rpm +
-Wrote: /home/trainee/rpmbuild/RPMS/x86_64/python3-perf-debuginfo-4.18.0-305.7.1.el8.i2tch.x86_64.rpm +
-Wrote: /home/trainee/rpmbuild/RPMS/x86_64/kernel-tools-4.18.0-305.7.1.el8.i2tch.x86_64.rpm +
-Wrote: /home/trainee/rpmbuild/RPMS/x86_64/kernel-tools-libs-4.18.0-305.7.1.el8.i2tch.x86_64.rpm +
-Wrote: /home/trainee/rpmbuild/RPMS/x86_64/kernel-tools-libs-devel-4.18.0-305.7.1.el8.i2tch.x86_64.rpm +
-Wrote: /home/trainee/rpmbuild/RPMS/x86_64/kernel-tools-debuginfo-4.18.0-305.7.1.el8.i2tch.x86_64.rpm +
-Wrote: /home/trainee/rpmbuild/RPMS/x86_64/bpftool-4.18.0-305.7.1.el8.i2tch.x86_64.rpm +
-Wrote: /home/trainee/rpmbuild/RPMS/x86_64/bpftool-debuginfo-4.18.0-305.7.1.el8.i2tch.x86_64.rpm +
-Wrote: /home/trainee/rpmbuild/RPMS/x86_64/kernel-selftests-internal-4.18.0-305.7.1.el8.i2tch.x86_64.rpm +
-Wrote: /home/trainee/rpmbuild/RPMS/x86_64/kernel-debug-core-4.18.0-305.7.1.el8.i2tch.x86_64.rpm +
-Wrote: /home/trainee/rpmbuild/RPMS/x86_64/kernel-debug-4.18.0-305.7.1.el8.i2tch.x86_64.rpm +
-Wrote: /home/trainee/rpmbuild/RPMS/x86_64/kernel-debug-devel-4.18.0-305.7.1.el8.i2tch.x86_64.rpm +
-Wrote: /home/trainee/rpmbuild/RPMS/x86_64/kernel-debug-modules-4.18.0-305.7.1.el8.i2tch.x86_64.rpm +
-Wrote: /home/trainee/rpmbuild/RPMS/x86_64/kernel-debug-modules-extra-4.18.0-305.7.1.el8.i2tch.x86_64.rpm +
-Wrote: /home/trainee/rpmbuild/RPMS/x86_64/kernel-debug-modules-internal-4.18.0-305.7.1.el8.i2tch.x86_64.rpm +
-Wrote: /home/trainee/rpmbuild/RPMS/x86_64/kernel-debug-debuginfo-4.18.0-305.7.1.el8.i2tch.x86_64.rpm +
-Wrote: /home/trainee/rpmbuild/RPMS/x86_64/kernel-core-4.18.0-305.7.1.el8.i2tch.x86_64.rpm +
-Wrote: /home/trainee/rpmbuild/RPMS/x86_64/kernel-devel-4.18.0-305.7.1.el8.i2tch.x86_64.rpm +
-Wrote: /home/trainee/rpmbuild/RPMS/x86_64/kernel-modules-4.18.0-305.7.1.el8.i2tch.x86_64.rpm +
-Wrote: /home/trainee/rpmbuild/RPMS/x86_64/kernel-modules-extra-4.18.0-305.7.1.el8.i2tch.x86_64.rpm +
-Wrote: /home/trainee/rpmbuild/RPMS/x86_64/kernel-modules-internal-4.18.0-305.7.1.el8.i2tch.x86_64.rpm +
-Wrote: /home/trainee/rpmbuild/RPMS/x86_64/kernel-debuginfo-4.18.0-305.7.1.el8.i2tch.x86_64.rpm +
-Wrote: /home/trainee/rpmbuild/RPMS/x86_64/kernel-ipaclones-internal-4.18.0-305.7.1.el8.i2tch.x86_64.rpm +
-Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.rkOgfs+
  
 [1]+  Done                    rpmbuild -bb --target=`uname -m` kernel.spec 2> build-err.log | tee build-out.log [1]+  Done                    rpmbuild -bb --target=`uname -m` kernel.spec 2> build-err.log | tee build-out.log
-</code> 
- 
-<code> 
-[trainee@centos8 SPECS]$ cd ../RPMS 
-[trainee@centos8 RPMS]$ ls 
-x86_64 
-[trainee@centos8 RPMS]$ cd x86_64/ 
-[trainee@centos8 x86_64]$ ls 
-bpftool-4.18.0-305.7.1.el8.i2tch.x86_64.rpm                 kernel-debuginfo-common-x86_64-4.18.0-305.7.1.el8.i2tch.x86_64.rpm  kernel-selftests-internal-4.18.0-305.7.1.el8.i2tch.x86_64.rpm 
-bpftool-debuginfo-4.18.0-305.7.1.el8.i2tch.x86_64.rpm       kernel-debug-modules-4.18.0-305.7.1.el8.i2tch.x86_64.rpm            kernel-tools-4.18.0-305.7.1.el8.i2tch.x86_64.rpm 
-kernel-4.18.0-305.7.1.el8.i2tch.x86_64.rpm                  kernel-debug-modules-extra-4.18.0-305.7.1.el8.i2tch.x86_64.rpm      kernel-tools-debuginfo-4.18.0-305.7.1.el8.i2tch.x86_64.rpm 
-kernel-core-4.18.0-305.7.1.el8.i2tch.x86_64.rpm             kernel-debug-modules-internal-4.18.0-305.7.1.el8.i2tch.x86_64.rpm   kernel-tools-libs-4.18.0-305.7.1.el8.i2tch.x86_64.rpm 
-kernel-cross-headers-4.18.0-305.7.1.el8.i2tch.x86_64.rpm    kernel-devel-4.18.0-305.7.1.el8.i2tch.x86_64.rpm                    kernel-tools-libs-devel-4.18.0-305.7.1.el8.i2tch.x86_64.rpm 
-kernel-debug-4.18.0-305.7.1.el8.i2tch.x86_64.rpm            kernel-headers-4.18.0-305.7.1.el8.i2tch.x86_64.rpm                  perf-4.18.0-305.7.1.el8.i2tch.x86_64.rpm 
-kernel-debug-core-4.18.0-305.7.1.el8.i2tch.x86_64.rpm       kernel-ipaclones-internal-4.18.0-305.7.1.el8.i2tch.x86_64.rpm       perf-debuginfo-4.18.0-305.7.1.el8.i2tch.x86_64.rpm 
-kernel-debug-debuginfo-4.18.0-305.7.1.el8.i2tch.x86_64.rpm  kernel-modules-4.18.0-305.7.1.el8.i2tch.x86_64.rpm                  python3-perf-4.18.0-305.7.1.el8.i2tch.x86_64.rpm 
-kernel-debug-devel-4.18.0-305.7.1.el8.i2tch.x86_64.rpm      kernel-modules-extra-4.18.0-305.7.1.el8.i2tch.x86_64.rpm            python3-perf-debuginfo-4.18.0-305.7.1.el8.i2tch.x86_64.rpm 
-kernel-debuginfo-4.18.0-305.7.1.el8.i2tch.x86_64.rpm        kernel-modules-internal-4.18.0-305.7.1.el8.i2tch.x86_64.rpm 
 </code> </code>
  
Ligne 1189: Ligne 1110:
  
 <code> <code>
 +[trainee@centos8 SPECS]$ cd ../RPMS/x86_64
 +
 [root@centos8 x86_64]# dnf localinstall kernel-*.rpm [root@centos8 x86_64]# dnf localinstall kernel-*.rpm
-Last metadata expiration check: 2:25:32 ago on Tue 20 Jul 2021 08:37:00 EDT. 
-Dependencies resolved. 
-=============================================================================================================================================================================================================== 
- Package                                                       Architecture                          Version                                                 Repository                                   Size 
-=============================================================================================================================================================================================================== 
-Installing: 
- kernel                                                        x86_64                                4.18.0-305.7.1.el8.i2tch                                @commandline                                5.9 M 
- kernel-core                                                   x86_64                                4.18.0-305.7.1.el8.i2tch                                @commandline                                 36 M 
- kernel-cross-headers                                          x86_64                                4.18.0-305.7.1.el8.i2tch                                @commandline                                 11 M 
- kernel-debug                                                  x86_64                                4.18.0-305.7.1.el8.i2tch                                @commandline                                5.9 M 
- kernel-debug-core                                             x86_64                                4.18.0-305.7.1.el8.i2tch                                @commandline                                 63 M 
- kernel-debug-debuginfo                                        x86_64                                4.18.0-305.7.1.el8.i2tch                                @commandline                                683 M 
- kernel-debug-devel                                            x86_64                                4.18.0-305.7.1.el8.i2tch                                @commandline                                 19 M 
- kernel-debug-modules                                          x86_64                                4.18.0-305.7.1.el8.i2tch                                @commandline                                 54 M 
- kernel-debug-modules-extra                                    x86_64                                4.18.0-305.7.1.el8.i2tch                                @commandline                                7.2 M 
- kernel-debug-modules-internal                                 x86_64                                4.18.0-305.7.1.el8.i2tch                                @commandline                                6.3 M 
- kernel-debuginfo                                              x86_64                                4.18.0-305.7.1.el8.i2tch                                @commandline                                570 M 
- kernel-debuginfo-common-x86_64                                x86_64                                4.18.0-305.7.1.el8.i2tch                                @commandline                                 75 M 
- kernel-devel                                                  x86_64                                4.18.0-305.7.1.el8.i2tch                                @commandline                                 18 M 
- kernel-ipaclones-internal                                     x86_64                                4.18.0-305.7.1.el8.i2tch                                @commandline                                 20 M 
- kernel-modules                                                x86_64                                4.18.0-305.7.1.el8.i2tch                                @commandline                                 28 M 
- kernel-modules-extra                                          x86_64                                4.18.0-305.7.1.el8.i2tch                                @commandline                                6.5 M 
- kernel-modules-internal                                       x86_64                                4.18.0-305.7.1.el8.i2tch                                @commandline                                6.1 M 
- kernel-selftests-internal                                     x86_64                                4.18.0-305.7.1.el8.i2tch                                @commandline                                 19 M 
- kernel-tools-debuginfo                                        x86_64                                4.18.0-305.7.1.el8.i2tch                                @commandline                                6.2 M 
- kernel-tools-libs-devel                                       x86_64                                4.18.0-305.7.1.el8.i2tch                                @commandline                                5.9 M 
-Downgrading: 
- kernel-headers                                                x86_64                                4.18.0-305.7.1.el8.i2tch                                @commandline                                7.1 M 
- kernel-tools                                                  x86_64                                4.18.0-305.7.1.el8.i2tch                                @commandline                                6.1 M 
- kernel-tools-libs                                             x86_64                                4.18.0-305.7.1.el8.i2tch                                @commandline                                5.9 M 
- 
-Transaction Summary 
-=============================================================================================================================================================================================================== 
-Install    20 Packages 
-Downgrade   3 Packages 
- 
-Total size: 1.6 G 
-Is this ok [y/N]: y 
 </code> </code>
  
Ligne 1236: Ligne 1121:
 </code> </code>
  
-Connectez-vous en tant que trainee et devenez root. Listez ensuite les noyaux installés : +Connectez-vous en tant que trainee et devenez root. Constatez l'entrée **saved-entry** du fichier **/boot/grub2/grubenv** :
- +
-<code> +
-[root@centos8 ~]# rpm -qa | grep kernel +
-kernel-modules-4.18.0-305.3.1.el8.x86_64 +
-kernel-tools-4.18.0-305.7.1.el8.i2tch.x86_64 +
-kernel-headers-4.18.0-305.7.1.el8.i2tch.x86_64 +
-kernel-debuginfo-4.18.0-305.7.1.el8.i2tch.x86_64 +
-kernel-debug-core-4.18.0-305.7.1.el8.i2tch.x86_64 +
-kernel-modules-internal-4.18.0-305.7.1.el8.i2tch.x86_64 +
-kernel-modules-4.18.0-305.7.1.el8_4.x86_64 +
-kernel-debug-modules-4.18.0-305.7.1.el8.i2tch.x86_64 +
-kernel-devel-4.18.0-305.7.1.el8.i2tch.x86_64 +
-kernel-tools-debuginfo-4.18.0-305.7.1.el8.i2tch.x86_64 +
-kernel-tools-libs-4.18.0-305.7.1.el8.i2tch.x86_64 +
-kernel-debug-modules-internal-4.18.0-305.7.1.el8.i2tch.x86_64 +
-kernel-cross-headers-4.18.0-305.7.1.el8.i2tch.x86_64 +
-kernel-core-4.18.0-305.7.1.el8_4.x86_64 +
-kernel-devel-4.18.0-305.7.1.el8_4.x86_64 +
-kernel-debuginfo-common-x86_64-4.18.0-305.7.1.el8.i2tch.x86_64 +
-kernel-debug-modules-extra-4.18.0-305.7.1.el8.i2tch.x86_64 +
-kernel-debug-devel-4.18.0-305.7.1.el8.i2tch.x86_64 +
-kernel-tools-libs-devel-4.18.0-305.7.1.el8.i2tch.x86_64 +
-kernel-modules-extra-4.18.0-305.7.1.el8.i2tch.x86_64 +
-kernel-4.18.0-305.7.1.el8_4.x86_64 +
-kernel-4.18.0-305.7.1.el8.i2tch.x86_64 +
-kernel-core-4.18.0-305.7.1.el8.i2tch.x86_64 +
-kernel-selftests-internal-4.18.0-305.7.1.el8.i2tch.x86_64 +
-kernel-debug-debuginfo-4.18.0-305.7.1.el8.i2tch.x86_64 +
-kernel-debug-4.18.0-305.7.1.el8.i2tch.x86_64 +
-kernel-4.18.0-305.3.1.el8.x86_64 +
-kernel-core-4.18.0-305.3.1.el8.x86_64 +
-kernel-modules-4.18.0-305.7.1.el8.i2tch.x86_64 +
-kernel-ipaclones-internal-4.18.0-305.7.1.el8.i2tch.x86_64 +
-</code> +
- +
-Constatez l'entrée **saved-entry** du fichier **/boot/grub2/grubenv** :+
  
 <code> <code>
-[root@centos8 ~]# grep i2tch /boot/grub2/grubenv  +[root@centos8 ~]# grep ittraining /boot/grub2/grubenv  
-saved_entry=95bd69e34a7444a7b58cb74fbfb86df2-4.18.0-305.7.1.el8.i2tch.x86_64+saved_entry=95bd69e34a7444a7b58cb74fbfb86df2-4.18.0-553.16.1.el8.ittraining.x86_64
 </code> </code>
  
Ligne 1283: Ligne 1132:
 <code> <code>
 [root@centos8 ~]# uname -r [root@centos8 ~]# uname -r
-4.18.0-305.7.1.el8.i2tch.x86_64+4.18.0-553.16.1.el8.ittraining.x86_64
 </code> </code>
  
Menu