[问题描述] An23.1 ECS环境安装kernel-5.10.134-17_rc2.an23内核,重启后未正确切换 [root@localhost ~]# grubby --info=ALL index=0 kernel="/boot/vmlinuz-6.6.25-2.1.an23.aarch64" args="ro rhgb quiet selinux=0 console=tty0 $tuned_params" root="UUID=9a4b76ae-4e37-442f-aae7-fce6d810901a" initrd="/boot/initramfs-6.6.25-2.1.an23.aarch64.img $tuned_initrd" title="Anolis OS (6.6.25-2.1.an23.aarch64) 23" id="4408e8ebcb614863b28d7e4c00958f84-6.6.25-2.1.an23.aarch64" index=1 kernel="/boot/vmlinuz-5.10.134-17_rc2.an23.aarch64" args="ro rhgb quiet selinux=0 console=tty0 $tuned_params cgroup.memory=nokmem crashkernel=0M-2G:0M,2G-64G:256M,64G-:384M iommu.passthrough=1 iommu.strict=0 nospectre_bhb ssbd=force-off kfence.sample_interval=100 kfence.booting_max=0-2G:0,2G-32G:2M,32G-:32M" root="UUID=9a4b76ae-4e37-442f-aae7-fce6d810901a" initrd="/boot/initramfs-5.10.134-17_rc2.an23.aarch64.img $tuned_initrd" title="Anolis OS (5.10.134-17_rc2.an23.aarch64) 23" id="4408e8ebcb614863b28d7e4c00958f84-5.10.134-17_rc2.an23.aarch64" index=2 kernel="/boot/vmlinuz-0-rescue-4408e8ebcb614863b28d7e4c00958f84" args="ro rhgb quiet selinux=0 console=tty0" root="UUID=9a4b76ae-4e37-442f-aae7-fce6d810901a" initrd="/boot/initramfs-0-rescue-4408e8ebcb614863b28d7e4c00958f84.img" title="Anolis OS (0-rescue-4408e8ebcb614863b28d7e4c00958f84) 23" id="4408e8ebcb614863b28d7e4c00958f84-0-rescue" [root@localhost ~]# grubby --default-index 1 [root@localhost ~]# grubby --default-kernel /boot/vmlinuz-5.10.134-17_rc2.an23.aarch64 [root@localhost ~]# uname -r 6.6.25-2.1.an23.aarch64 [部分dmesg日志] [ 1.148445] evm: security.apparmor (disabled) [ 1.148446] evm: security.ima [ 1.148447] evm: security.capability [ 1.148448] evm: HMAC attrs: 0x1 [ 1.163728] clk: Disabling unused clocks [ 1.163735] SDEI NMI watchdog: Disable SDEI NMI Watchdog in VM [ 1.164163] integrity: Unable to open file: /etc/keys/x509_ima.der (-2) [ 1.164165] integrity: Unable to open file: /etc/keys/x509_evm.der (-2) [ 1.165230] Freeing unused kernel memory: 5184K [ 1.165721] Run /init as init process [ 1.165722] with arguments: [ 1.165723] /init [ 1.165724] rhgb [ 1.165725] with environment: [ 1.165726] HOME=/ [ 1.165726] TERM=linux [ 1.165727] BOOT_IMAGE=(hd0,gpt3)/boot/vmlinuz-6.6.25-2.1.an23.aarch64 [ 1.180560] virtio_ring: module verification failed: signature and/or required key missing - tainting kernel [ 1.257326] systemd[1]: systemd v255-3.an23 running in system mode (+PAM +AUDIT +SELINUX -APPARMOR +IMA +SMACK +SECCOMP -GCRYPT +GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN -IPTC +KMOD +LIBCRYPTSETUP +LIBFDISK +PCRE2 +PWQUALITY +P11KIT +QRENCODE +TPM2 +BZIP2 +LZ4 +XZ +ZLIB +ZSTD +BPF_FRAMEWORK +XKBCOMMON +UTMP +SYSVINIT default-hierarchy=unified) [ 1.257331] systemd[1]: Detected virtualization vm-other. [环境信息]: 机器类型:ECS [测试环境内核信息]: [root@anolis ~]# uname -r 6.6.25-2.1.an23.aarch64 [测试环境操作系统信息]: [root@anolis ~]# cat /etc/os-release NAME="Anolis OS" VERSION="23" ID="anolis" VERSION_ID="23" PLATFORM_ID="platform:an23" PRETTY_NAME="Anolis OS 23" ANSI_COLOR="0;31" HOME_URL="https://openanolis.cn/" BUG_REPORT_URL="https://bugzilla.openanolis.cn/" [问题发生概率]: 必现 [复现步骤]: 1、在测试环境准备待安装内核 2、安装内核 3、重启查看情况
在安装了5.10.134-17_rc2.an23.aarch64和6.6.25-2.1.an23.aarch64内核的环境上,卸载6.6版本的内核,重启后内核为5.10。
在An23.1 5.10.134-17_rc2.2 arm环境上仍存在此问题 [root@localhost ~]# uname -r 6.6.25-2.1.an23.aarch64 [root@localhost ~]# cat /etc/os-release NAME="Anolis OS" VERSION="23" ID="anolis" VERSION_ID="23" PLATFORM_ID="platform:an23" PRETTY_NAME="Anolis OS 23" ANSI_COLOR="0;31" HOME_URL="https://openanolis.cn/" BUG_REPORT_URL="https://bugzilla.openanolis.cn/" [root@localhost ~]# grubby --info=ALL index=0 kernel="/boot/vmlinuz-6.6.25-2.1.an23.aarch64" args="ro rhgb quiet selinux=0 console=tty0 $tuned_params" root="UUID=9a4b76ae-4e37-442f-aae7-fce6d810901a" initrd="/boot/initramfs-6.6.25-2.1.an23.aarch64.img $tuned_initrd" title="Anolis OS (6.6.25-2.1.an23.aarch64) 23" id="4408e8ebcb614863b28d7e4c00958f84-6.6.25-2.1.an23.aarch64" index=1 kernel="/boot/vmlinuz-5.10.134-17_rc2.2.an23.aarch64" args="ro rhgb quiet selinux=0 console=tty0 $tuned_params cgroup.memory=nokmem crashkernel=0M-2G:0M,2G-64G:256M,64G-:384M iommu.passthrough=1 iommu.strict=0 nospectre_bhb ssbd=force-off kfence.sample_interval=100 kfence.booting_max=0-2G:0,2G-32G:2M,32G-:32M" root="UUID=9a4b76ae-4e37-442f-aae7-fce6d810901a" initrd="/boot/initramfs-5.10.134-17_rc2.2.an23.aarch64.img $tuned_initrd" title="Anolis OS (5.10.134-17_rc2.2.an23.aarch64) 23" id="4408e8ebcb614863b28d7e4c00958f84-5.10.134-17_rc2.2.an23.aarch64" index=2 kernel="/boot/vmlinuz-0-rescue-4408e8ebcb614863b28d7e4c00958f84" args="ro rhgb quiet selinux=0 console=tty0" root="UUID=9a4b76ae-4e37-442f-aae7-fce6d810901a" initrd="/boot/initramfs-0-rescue-4408e8ebcb614863b28d7e4c00958f84.img" title="Anolis OS (0-rescue-4408e8ebcb614863b28d7e4c00958f84) 23" id="4408e8ebcb614863b28d7e4c00958f84-0-rescue" [root@localhost ~]# grubby --default-index 1 [root@localhost ~]# grubby --default-kernel /boot/vmlinuz-5.10.134-17_rc2.2.an23.aarch64
An23.1 5.10.134-17.1_rc1 checklist测试: arm环境6.6.25-2.1.an23.aarch64内核安装5.10.134-17.1_rc1.an23.aarch64后,重启无法正常切换 x86环境6.6内核安装5.10.134-17.1_rc1.an23.x86_64内核后,重启切换成功。 arm环境: [root@iZbp11rzyir6cisk5mcgf0Z ~]# grubby --info=ALL index=0 kernel="/boot/vmlinuz-6.6.25-2.1.an23.aarch64" args="ro rhgb quiet selinux=0 console=tty0 $tuned_params cgroup.memory=nokmem crashkernel=0M-2G:0M,2G-64G:256M,64G-:384M iommu.passthrough=1 iommu.strict=0 nospectre_bhb ssbd=force-off" root="UUID=9a4b76ae-4e37-442f-aae7-fce6d810901a" initrd="/boot/initramfs-6.6.25-2.1.an23.aarch64.img $tuned_initrd" title="Anolis OS (6.6.25-2.1.an23.aarch64) 23" id="4408e8ebcb614863b28d7e4c00958f84-6.6.25-2.1.an23.aarch64" index=1 kernel="/boot/vmlinuz-5.10.134-17.1_rc1.an23.aarch64" args="ro rhgb quiet selinux=0 console=tty0 $tuned_params cgroup.memory=nokmem crashkernel=0M-2G:0M,2G-64G:256M,64G-:384M iommu.passthrough=1 iommu.strict=0 nospectre_bhb ssbd=force-off kfence.sample_interval=100 kfence.booting_max=0-2G:0,2G-32G:2M,32G-:32M" root="UUID=9a4b76ae-4e37-442f-aae7-fce6d810901a" initrd="/boot/initramfs-5.10.134-17.1_rc1.an23.aarch64.img $tuned_initrd" title="Anolis OS (5.10.134-17.1_rc1.an23.aarch64) 23" id="4408e8ebcb614863b28d7e4c00958f84-5.10.134-17.1_rc1.an23.aarch64" index=2 kernel="/boot/vmlinuz-0-rescue-4408e8ebcb614863b28d7e4c00958f84" args="ro rhgb quiet selinux=0 console=tty0" root="UUID=9a4b76ae-4e37-442f-aae7-fce6d810901a" initrd="/boot/initramfs-0-rescue-4408e8ebcb614863b28d7e4c00958f84.img" title="Anolis OS (0-rescue-4408e8ebcb614863b28d7e4c00958f84) 23" id="4408e8ebcb614863b28d7e4c00958f84-0-rescue" [root@iZbp11rzyir6cisk5mcgf0Z ~]# grubby --default-index 1 [root@iZbp11rzyir6cisk5mcgf0Z ~]# grubby --default-kernel /boot/vmlinuz-5.10.134-17.1_rc1.an23.aarch64 [root@iZbp11rzyir6cisk5mcgf0Z ~]# uname -r 6.6.25-2.1.an23.aarch64 x86环境: [root@iZbp1fl4syg6qkwgafhdmkZ ~]# uname -r 5.10.134-17.1_rc1.an23.x86_64 [root@iZbp1fl4syg6qkwgafhdmkZ ~]# cat /etc/os-release NAME="Anolis OS" VERSION="23" ID="anolis" VERSION_ID="23" PLATFORM_ID="platform:an23" PRETTY_NAME="Anolis OS 23" ANSI_COLOR="0;31" HOME_URL="https://openanolis.cn/" BUG_REPORT_URL="https://bugzilla.openanolis.cn/" [root@iZbp1fl4syg6qkwgafhdmkZ ~]# grubby --info=ALL index=0 kernel="/boot/vmlinuz-6.6.25-2.1.an23.x86_64" args="ro rhgb quiet selinux=0 $tuned_params cgroup.memory=nokmem crashkernel=0M-2G:0M,2G-8G:192M,8G-:256M" root="UUID=a6b09fcd-7c4f-40f8-a0c5-d5daee3b1ac9" initrd="/boot/initramfs-6.6.25-2.1.an23.x86_64.img $tuned_initrd" title="Anolis OS (6.6.25-2.1.an23.x86_64) 23" id="b1562ed6d5a94b3a85cae0be7deb1cf7-6.6.25-2.1.an23.x86_64" index=1 kernel="/boot/vmlinuz-5.10.134-17.1_rc1.an23.x86_64" args="ro rhgb quiet selinux=0 $tuned_params cgroup.memory=nokmem crashkernel=0M-2G:0M,2G-8G:192M,8G-:256M kfence.sample_interval=100 kfence.booting_max=0-2G:0,2G-32G:2M,32G-:32M preempt=none" root="UUID=a6b09fcd-7c4f-40f8-a0c5-d5daee3b1ac9" initrd="/boot/initramfs-5.10.134-17.1_rc1.an23.x86_64.img $tuned_initrd" title="Anolis OS (5.10.134-17.1_rc1.an23.x86_64) 23" id="b1562ed6d5a94b3a85cae0be7deb1cf7-5.10.134-17.1_rc1.an23.x86_64" index=2 kernel="/boot/vmlinuz-0-rescue-b1562ed6d5a94b3a85cae0be7deb1cf7" args="ro rhgb quiet selinux=0" root="UUID=a6b09fcd-7c4f-40f8-a0c5-d5daee3b1ac9" initrd="/boot/initramfs-0-rescue-b1562ed6d5a94b3a85cae0be7deb1cf7.img" title="Anolis OS (0-rescue-b1562ed6d5a94b3a85cae0be7deb1cf7) 23" id="b1562ed6d5a94b3a85cae0be7deb1cf7-0-rescue" [root@iZbp1fl4syg6qkwgafhdmkZ ~]# grubby --default-index 1 [root@iZbp1fl4syg6qkwgafhdmkZ ~]# uname -r 5.10.134-17.1_rc1.an23.x86_64