- 方法一:安装后直接运行 new kernel
- 方法二:nextboot
- # make KERNCONF=MYKERNEL INSTKERNAME=test kernel (编译安装时起个名字)
- 此时你已经安装完 new kernel !
- # mv /boot/kernel /boot/kernel.test
- # mkdir /boot/kernel
- # cp /boot/kernel.good/* /boot/kernel/ (将老版本Kernel 拉回来)
- # nextboot -t kernel.test (下次启动运行kernel.test,仅一次)
- # mv /boot/kernel /boot/kernel.previous (测试后保存 老版本 kernel)
- # mv /boot/kernel.test /boot/kernel (将kernel.test 改为默认 kernel)
- ------------------------------------------------------------------------------------------------------
- 声明:这是从书上看到的 我感觉很变态
- 下面这是 less /usr/src/UPDATING 文档里的方法 (这个很正常)
- To test a kernel once
- ---------------------
- If you just want to boot a kernel once (because you are not sure
- if it works, or if you want to boot a known bad kernel to provide
- debugging information) run
- make installkernel KERNCONF=YOUR_KERNEL_HERE KODIR=/boot/testkernel
- nextboot -k testkernel
- 方法三:Loader Prompt
- ok unload (erase the loaded kernel and all modules from memory)
ok load /boot/kernel.test/kernel
ok load /boot/kernel.test/acpi.ko
ok boot (使用 kernel.test 重新启动)