[缺陷描述]: 修改内核启动参数crashkernel=1024M,grub2-mkconfig同步内核配置,重启后,修改后的参数未生效 测试日志: # cat /etc/default/grub GRUB_TIMEOUT=5 GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)" GRUB_DEFAULT=saved GRUB_TERMINAL_OUTPUT="console" GRUB_CMDLINE_LINUX="console=tty0 crashkernel=1024M console=ttyS0,115200 rd.driver.pre=ahci" GRUB_DISABLE_RECOVERY="true" GRUB_ENABLE_BLSCFG=true # grub2-mkconfig -o /boot/grub2/grub.cfg Generating grub configuration file ... done 内核信息: # uname -r 4.19.91-484.git.b8202b253.an8.x86_64+debug 操作系统信息: # cat /etc/os-release NAME="Anolis OS" VERSION="8.6" ID="anolis" ID_LIKE="rhel fedora centos" VERSION_ID="8.6" PLATFORM_ID="platform:an8" PRETTY_NAME="Anolis OS 8.6" ANSI_COLOR="0;31" HOME_URL="https://openanolis.cn/" cpu信息: # lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 96 On-line CPU(s) list: 0-95 Thread(s) per core: 2 Core(s) per socket: 24 Socket(s): 2 NUMA node(s): 1 Vendor ID: GenuineIntel BIOS Vendor ID: Intel(R) Corporation CPU family: 6 Model: 85 Model name: Intel(R) Xeon(R) Platinum 8163 CPU @ 2.50GHz BIOS Model name: Intel(R) Xeon(R) Platinum 8163 CPU @ 2.50GHz Stepping: 4 CPU MHz: 2702.534 CPU max MHz: 3100.0000 CPU min MHz: 1000.0000 BogoMIPS: 5000.00 Virtualization: VT-x L1d cache: 32K L1i cache: 32K L2 cache: 1024K L3 cache: 33792K NUMA node0 CPU(s): 0-95 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb cat_l3 cdp_l3 invpcid_single pti intel_ppin ssbd mba ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm cqm mpx rdt_a avx512f avx512dq rdseed adx smap clflushopt clwb intel_pt avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local dtherm ida arat pln pts pku ospke md_clear flush_l1d arch_capabilities 内存信息: # free -h total used free shared buff/cache available Mem: 438Gi 8.3Gi 429Gi 9.0Mi 903Mi 427Gi Swap: 2.0Gi 0B 2.0Gi [发生概率]:必现 [复现步骤]: 1. 修改/etc/default/grub配置crashkernel=1024M 2. 将内核参数写到grub文件中 grub2-mkconfig -o /boot/grub2/grub.cfg 3. 重启后查看cmdline内核参数 cat /proc/cmdline [期望结果]: 查看cmdline内核参数crashkernel=1024M [实际结果]: 查看cmdline内核参数还是原来的值crashkernel=0M-2G:0M,2G-8G:192M,8G-:256M [分析] 疑似以下文件配置写死,手动修改crashkernel值重启后cmdline修改成功 # cat /boot/loader/entries/d3dc12cf9a474377b521728e23620db8-4.19.91-484.git.b8202b253.an8.x86_64+debug.conf title Anolis OS (4.19.91-484.git.b8202b253.an8.x86_64+debug) 8.4 version 4.19.91-484.git.b8202b253.an8.x86_64+debug linux /vmlinuz-4.19.91-484.git.b8202b253.an8.x86_64+debug initrd /initramfs-4.19.91-484.git.b8202b253.an8.x86_64+debug.img $tuned_initrd options root=UUID=5b9fc843-745a-4e18-b352-f99dd1c7db17 ro console=tty0 console=ttyS0,115200 rd.driver.pre=ahci $tuned_params crashkernel=0M-2G:0M,2G-8G:192M,8G-:256M id anolis-20221007140004-4.19.91-484.git.b8202b253.an8.x86_64+debug grub_users $grub_users grub_arg --unrestricted grub_class kernel
可以看下这个bug单里的评论,https://bugzilla.openanolis.cn/show_bug.cgi?id=403
重复问题 *** This bug has been marked as a duplicate of bug 403 ***