Description of problem: 在内部物理机上安装,anolis23 x86_64的ANCK 6.6.7-1.1内核(kernel-6.6.7-1.1_rc1.an23.x86_64.rpm)抛出dracut异常信息dracut: Disabling early microcode, because kernel does not support it. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. rpm -ivh kernel-6.6.7-1.1_rc1.an23.x86_64.rpm Actual results: [root@anolis stress-ng-master]# rpm -ivh kernel-6.6.7-1.1_rc1.an23.x86_64.rpm Verifying... ################################# [100%] 准备中... ################################# [100%] 正在升级/安装... 1:kernel-6.6.7-1.1_rc1.an23 ################################# [100%] dracut: Disabling early microcode, because kernel does not support it. CONFIG_MICROCODE_[AMD|INTEL]!=y Expected results: 安装内核无异常输出 Additional info: [root@anolis stress-ng-master]# uname -r 6.6.7-1.1_rc1.an23.x86_64 [root@anolis stress-ng-master]# 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@anolis stress-ng-master]# lscpu 架构: x86_64 CPU 运行模式: 32-bit, 64-bit Address sizes: 52 bits physical, 57 bits virtual 字节序: Little Endian CPU: 96 在线 CPU 列表: 0-95 厂商 ID: AuthenticAMD BIOS 厂商 ID: Advanced Micro Devices, Inc. 型号名称: AMD EPYC 9224 24-Core Processor BIOS 型号名称: AMD EPYC 9224 24-Core Processor Unknown CPU @ 2.5GHz BIOS CPU family: 107 CPU 系列: 25 型号: 17 每个核的线程数: 2 每个座的核数: 24 座: 2 步进: 1 Frequency boost: enabled CPU(s) scaling MHz: 41% CPU 最大 MHz: 3706.0540 CPU 最小 MHz: 1500.0000 BogoMIPS: 4999.85 标记: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht sy scall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good amd_lbr_v2 nopl nonstop_tsc cpuid extd _apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch os vw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pst ate ssbd mba perfmon_v2 ibrs ibpb stibp ibrs_enhanced vmmcall fsgsbase bmi1 avx2 smep bmi2 erms invpcid cqm rdt_a avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb avx512cd sha_ni avx512bw avx512v l xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local avx512_bf16 clzero i rperf xsaveerptr rdpru wbnoinvd amd_ppin cppc arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flu shbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif x2avic v_spec_ctrl vnmi avx512 vbmi umip pku ospke avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg avx512_vpopcntdq rdpid overflow_recov succor smca fsrm flush_l1d debug_swap Virtualization features: 虚拟化: AMD-V Caches (sum of all): L1d: 1.5 MiB (48 instances) L1i: 1.5 MiB (48 instances) L2: 48 MiB (48 instances) L3: 128 MiB (8 instances) NUMA: NUMA 节点: 2 NUMA 节点0 CPU: 0-23,48-71 NUMA 节点1 CPU: 24-47,72-95 Vulnerabilities: Gather data sampling: Not affected Itlb multihit: Not affected L1tf: Not affected Mds: Not affected Meltdown: Not affected Mmio stale data: Not affected Retbleed: Not affected Spec rstack overflow: Vulnerable: Safe RET, no microcode Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization Spectre v2: Mitigation; Enhanced / Automatic IBRS, IBPB conditional, STIBP always-on, RSB filling, PBRSB-eIBRS Not affected Srbds: Not affected Tsx async abort: Not affected [root@anolis stress-ng-master]# [root@anolis stress-ng-master]# df -h 文件系统 大小 已用 可用 已用% 挂载点 devtmpfs 4.0M 0 4.0M 0% /dev tmpfs 126G 0 126G 0% /dev/shm tmpfs 51G 27M 51G 1% /run efivarfs 128K 18K 106K 14% /sys/firmware/efi/efivars /dev/sda4 444G 24G 421G 6% / tmpfs 126G 0 126G 0% /tmp /dev/sda2 1014M 331M 684M 33% /boot /dev/sda1 200M 6.1M 194M 4% /boot/efi tmpfs 26G 40K 26G 1% /run/user/42 tmpfs 26G 20K 26G 1% /run/user/0 [root@anolis stress-ng-master]# [root@anolis stress-ng-master]# free -g total used free shared buff/cache available Mem: 251 2 247 0 1 247 Swap: 1 0 1 [root@anolis stress-ng-master]# cat /proc/cmdline BOOT_IMAGE=(hd1,gpt2)/vmlinuz-6.6.7-1.1_rc1.an23.x86_64 root=UUID=21090a06-fc2d-4572-85c3-19f27aab935e ro resume=UUID=3a6195d0-7081-48cb-90f2-7bb978a33c4d rhgb quiet selinux=0 crashkernel=0M-2G:0M,2G-8G:192M,8G-:256M
研发帮忙确认一下这个打印是否符合预期,确保不是因为某些功能没打开导致后续的一些使用有问题。
补充下dracut版本信息 ------------ [root@anolis stress-ng-master]# rpm -q dracut dracut-057-1.an23.x86_64
6.6的内核修改了CONFIG的名称,将MICROCODE_INTEL和MICROCODE_AMD合并成MICROCODE了,这个是内核的commit:https://lore.kernel.org/all/20230810160805.081212701@linutronix.de/ dracut-057-1.an23.x86_64 因为没有更新,检测到没有MICROCODE_INTEL和MICROCODE_AMD,就报了warning。dracut upstream也有修复这个问题:https://github.com/dracutdevs/dracut/commit/6c80408c8644a0add1907b0593eb83f90d6247b1 wxb要求的dracut是059版本,在6.6-002版本测试中需要再检测一下是否还会存在该问题。 该问题不阻塞6.6-001.1发布。
在 [6.6.25-2][RC1][Anolis23]ECS x86 环境下该问题还是存在的,默认dracut版本dracut-057-1是环境中当前最高版本 -------- 信息如下 ------------- rw-r--r--. 1 root root 853363 Apr 11 15:27 bpftool-6.6.25-2_rc1.an23.x86_64.rpm -rw-r--r--. 1 root root 2594798 Apr 11 15:27 bpftool-debuginfo-6.6.25-2_rc1.an23.x86_64.rpm -rw-r--r--. 1 root root 60216392 Apr 11 15:27 kernel-6.6.25-2_rc1.an23.x86_64.rpm -rw-r--r--. 1 root root 550713933 Apr 11 15:27 kernel-debuginfo-6.6.25-2_rc1.an23.x86_64.rpm -rw-r--r--. 1 root root 54733739 Apr 11 15:27 kernel-debuginfo-common-x86_64-6.6.25-2_rc1.an23.x86_64.rpm -rw-r--r--. 1 root root 13970187 Apr 11 15:27 kernel-devel-6.6.25-2_rc1.an23.x86_64.rpm -rw-r--r--. 1 root root 1528395 Apr 11 15:27 kernel-headers-6.6.25-2_rc1.an23.x86_64.rpm -rw-r--r--. 1 root root 332350 Apr 11 15:27 kernel-tools-6.6.25-2_rc1.an23.x86_64.rpm -rw-r--r--. 1 root root 331729 Apr 11 15:27 kernel-tools-debuginfo-6.6.25-2_rc1.an23.x86_64.rpm -rw-r--r--. 1 root root 78446 Apr 11 15:27 kernel-tools-libs-6.6.25-2_rc1.an23.x86_64.rpm -rw-r--r--. 1 root root 68836 Apr 11 15:27 kernel-tools-libs-devel-6.6.25-2_rc1.an23.x86_64.rpm -rw-r--r--. 1 root root 2060160 Apr 11 15:27 perf-6.6.25-2_rc1.an23.x86_64.rpm -rw-r--r--. 1 root root 4998194 Apr 11 15:27 perf-debuginfo-6.6.25-2_rc1.an23.x86_64.rpm -rw-r--r--. 1 root root 174456 Apr 11 15:27 python3-perf-6.6.25-2_rc1.an23.x86_64.rpm -rw-r--r--. 1 root root 492772 Apr 11 15:27 python3-perf-debuginfo-6.6.25-2_rc1.an23.x86_64.rpm [root@iZbp1c9jzchxjqive233ugZ ~]# rpm -ivh kernel-6.6.25-2_rc1.an23.x86_64.rpm Verifying... ################################# [100%] Preparing... ################################# [100%] Updating / installing... 1:kernel-6.6.25-2_rc1.an23 ################################# [100%] dracut: Disabling early microcode, because kernel does not support it. CONFIG_MICROCODE_[AMD|INTEL]!=y #问题点 grep: warning: stray \ before / grep: warning: stray \ before / [root@iZbp1c9jzchxjqive233ugZ ~]# rpm -q dracut dracut-057-1.an23.x86_64 [root@iZbp1c9jzchxjqive233ugZ ~]# yum update dracut #057是最高版本了 Last metadata expiration check: 0:28:33 ago on Fri 19 Apr 2024 11:54:23 AM CST. Dependencies resolved. Nothing to do.
dracut upsteam 的059版本回合了该修复补丁,需要升级dracut到059版本。
dracut 059 在 Nightly 源中已经可以获取,请重新测试
(In reply to gaochang from comment #6) > dracut 059 在 Nightly 源中已经可以获取,请重新测试 使用an23的Nightly源安装dracut的059版本后,在物理机环境重新再安装内核后 dracut: Disabling early microcode, because kernel does not support it 的问题已解决,验证记录如下 =============================== [root@anolis kernel]# rpm -ivh kernel-6.6.7-1.1_rc1.an23.x86_64.rpm Verifying... ################################# [100%] 准备中... ################################# [100%] 正在升级/安装... 1:kernel-6.6.7-1.1_rc1.an23 ################################# [100%] grep: warning: stray \ before / grep: warning: stray \ before / [root@anolis kernel]# rpm -q dracut dracut-059-2.an23.x86_64 =============================== 另外还有个grep: warning: stray \ before / 的异常打印信息,能不能也帮忙解决下呢,这是个遗留的问题 对应问题单子:https://bugzilla.openanolis.cn/show_bug.cgi?id=5563