怎样取出cobbler kopts中设置的参数?

Is there a way to find out with what parameters did the kernel boot?

For example if I specify noexec=off at the grub command line? Can I see this sort of info after the system has finished booting

答:

You can run cat /proc/cmdline.

Example:

[:] ~ $ cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-2.6.--generic root=UUID=025c4231-b7bb-48bf-93e9-d20c5b5ce123 ro crashkernel=384M-2G:64M,2G-:128M quiet splash bootchart=disable acpi_enforce_resources=lax vga= vt.handoff=

转自: http://askubuntu.com/questions/32654/how-do-i-find-the-boot-parameters-used-by-the-running-kernel

上一篇:Qt之表格控件蚂蚁线


下一篇:Spark RDD转换为DataFrame