Hello. Sorry for disturbing you. But I've met a strange problem while installing my custom kernel on one of my servers. Did everything as usual.
Then I edited conf file as I need it.
Everything seems ok. Then I go for reboot and after it I see:
Nothing changed.
I've tried
#nextboot -k kernet
But everything I've got was:
Could you please give me any advise where to look what is wrong, because I can't understand where is this kernel that boots on.. I've tried to replase /boot/GENERIC with my kernel, I've even tried to poot my kernel to /usr/obj/usr/src/sys in a direcotry called GENERIC, but this did't work either, so I'm completely emberessed now.
Code:
#uname -a
FreeBSD mail2.plane.ru 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May 1 07:18:07 UTC 2009 root@driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
#cd /usr/src/sys/amd64/conf
#cp GENERIC MYKERN
#edit MYKERN
Then I edited conf file as I need it.
Code:
#cd /usr/ports
#make buildkernel KERNCONF=MYKERN
#make installkernel KERNCONF=MYKERN
# ls -l | grep kern
drwxr-xr-x 2 root wheel 10752 Mar 4 15:11 kernel
drwxr-xr-x 2 root wheel 25088 Mar 4 09:49 kernel.old
Everything seems ok. Then I go for reboot and after it I see:
Code:
#uname -a
FreeBSD mail2.plane.ru 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May 1 07:18:07 UTC 2009 root@driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
Nothing changed.
Code:
#sysctl -a kern.bootfile
kern.bootfile: /boot/kernel/kernel
# strings -a /boot/kernel/kernel | grep :/
5:/R
ufs:/dev/md0
/sbin/init:/sbin/oinit:/sbin/init.bak:/rescue/init:/stand/sysinstall
root@mail2.plane.ru:/usr/obj/usr/src/sys/MYKERN
I've tried
#nextboot -k kernet
But everything I've got was:
Code:
#uname -a
FreeBSD mail2.plane.ru 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May 1 07:18:07 UTC 2009 root@driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
Code:
2# cat /boot/loader.conf
geom_mirror_load="YES"
Could you please give me any advise where to look what is wrong, because I can't understand where is this kernel that boots on.. I've tried to replase /boot/GENERIC with my kernel, I've even tried to poot my kernel to /usr/obj/usr/src/sys in a direcotry called GENERIC, but this did't work either, so I'm completely emberessed now.