我正在测试基于 ubuntu 发行版 (ubuntu-14.04.1-desktop-amd64) 的 kdump 功能,发现通过以下步骤,/proc/cmdline 没有得到更新:
1:修改/etc/default/grub[1]
2: sudo update-grub
3:重启
重启后,cat/proc/cmdline[3] 没有我在/etc/default/grub 中更改的内容,而/boot/grub/grub.cfg[2] 中的引导命令显示了我的内容已经改变了。
有专家知道吗?非常感谢
[1]在/etc/defaut/grub中手动修改
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash foo=bar crashkernel=256M"
[2]自动更新grub.cfg
/boot/vmlinuz-3.13.0-32-generic root=UUID=9e93b3d1-2859-473c-9c1f-204c2bb4e4f5 ro quiet splash foo=bar crashkernel=256M $vt_handoff
[3]cat/proc/cmdline
eric@eric-test-kdump:~$ cat/proc/cmdline BOOT_IMAGE=/boot/vmlinuz-3.13.0-32-generic root=UUID=9e93b3d1-2859-473c-9c1f-204c2bb4e4f5 ro quiet splash vt.handoff=7
最佳答案
我遇到了同样的问题,你也在使用 proxmox KVM 吗?修改了 crashkernel 配置,运行 grub-update 并重新启动,仍然/proc/cmdline 保持不变。
我从 proxmox 界面调用了重置,之后它被更新了。
关于linux -/proc/cmdline 未使用 update-grub 更新,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48199261/