pmon 固定设置为 载入 /boot/vmlinux
而内核包一般不带这个文件,而是带 vmlinux-2.6.23.12-loongson2这样的文件。
每次安装内核都要cp /boot/vmlinux-2.6.23.12-loongson2 /boot/vmlinux
其实我们可以自动做这个复制
只要在 /etc/kernel/postinst.d/set_pmon 建立一个文件内容:
#!/bin/bash
cp /boot/vmlinux-$1 /boot/vmlinux
就行了。
ll# dpkg -i linux-image-2.6.23.12-loongson2_2.6.23.12_mipsel.deb
(Reading database ... 137234 files and directories currently installed.)
Preparing to replace linux-image-2.6.23.11-loongson2 2.6.23.12 (using linux-image-2.6.23.12-loongson2_2.6.23.12_mipsel.deb) ...
Done.
Unpacking replacement linux-image-2.6.23.12-loongson2 ...
Setting up linux-image-2.6.23.12-loongson2 (2.6.23.11) ...
Running depmod.
Not updating image symbolic links since we are being updated/reinstalled
(2.6.23.12 was configured last, according to dpkg)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/set_pmon