linux-5.15.32 の CentOS Stream release 9 へのインストール
linux-5.15.32 の CentOS Stream release 9 へのインストールログです.複数のトラブルが発生します.
yum -y update
yum -y install make gcc flex bison openssl-devel elfutils-libelf-devel
wget https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.15.32.tar.xz
tar xfJ linux-5.15.32.tar.xz
cd linux-5.15.32/
cp /boot/config-5.14.0-71.el9.x86_64 .config
yes "" | make oldconfig
cp .config .config.bak
vi .config
vi .config は以下の2カ所の修正をする
(修正1)
8040行目
CONFIG_SYSTEM_TRUSTED_KEYS="certs/rhel.pem"
↓
CONFIG_SYSTEM_TRUSTED_KEYS=""
(修正2)
8214行目
CONFIG_DEBUG_INFO_BTF=y
↓
# CONFIG_DEBUG_INFO_DWARF5 is not set
CONFIG_DEBUG_INFO_BTF=n
make -j8 bzImage
もし
scripts/sign-file.c:25:10: fatal error: openssl/opensslv.h: No such file or directory
25 | #include <openssl/opensslv.h>
| ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [scripts/Makefile.host:95: scripts/sign-file] Error 1
make: *** [Makefile:1203: scripts] Error 2
となってしまったら
yum -y install openssl-devel
を忘れています.
もし
<stdin>:1:10: fatal error: libelf.h: No such file or directory
compilation terminated.
CC /home/xxxx/linux-5.15.32/tools/objtool/arch/x86/special.o
In file included from /home/xxxx/linux-5.15.32/tools/objtool/include/objtool/objtool.h:13,
from /home/xxxx/linux-5.15.32/tools/objtool/include/objtool/arch.h:11,
from /home/xxxx/linux-5.15.32/tools/objtool/include/objtool/check.h:11,
from /home/xxxx/linux-5.15.32/tools/objtool/include/objtool/special.h:10,
from arch/x86/special.c:4:
/home/xxxx/linux-5.15.32/tools/objtool/include/objtool/elf.h:10:10: fatal error: gelf.h: No such file or directory
10 | #include <gelf.h>
| ^~~~~~~~
となってしまったら
yum -y install elfutils-libelf-devel
を忘れています.
もし
make[1]: *** No rule to make target 'certs/rhel.pem', needed by 'certs/x509_certificate_list'. Stop.
となってしまったら (修正1) を忘れています.
もし
BTF: .tmp_vmlinux.btf: pahole (pahole) is not available
Failed to generate BTF for vmlinux
Try to disable CONFIG_DEBUG_INFO_BTF
となってしまったら (修正2) を忘れています.
make -j8 modules
make modules_install install
コメント
CentOSの後継のOSの地位は,CentOS Streamが引き継ぐのでしょうか.
CentOS Streamへの注目は現在のところさほど高くない印象ですが...
この記事が気に入ったらサポートをしてみませんか?