View Single Post
  #2   (View Single Post)  
Old 18th September 2008
DNAeon DNAeon is offline
Shell Scout
 
Join Date: Sep 2008
Location: Bulgaria
Posts: 138
Default

Read from the Handbook:
http://www.freebsd.org/doc/handbook/makeworld.html

I think the right way to build the kernel is this:
Code:
# make buildkernel KERNCONF=MYKERNEL
# make installkernel KERNCONF=MYKERNEL
Read this thread too - it explains what you want to do:
http://daemonforums.org/showthread.php?t=1843

EDIT:
Quote:
Originally Posted by TomAmundsen
I redid
make buildworld
make KERNCONF=MYKERNEL kernel
(reboot)
make installworld
I missed (didn't see it the first time) the kernel word at the end of the make command - your kernel should build this way too.

What is your # sysctl kern.securelevel ? If I'm correct if you are with a securelevel 1 or higher when you are rebuilding your kernel the make install command will try to install your kernel with the schg flag.

Code:
===> lib/libc (install)
install -C -o root -g wheel -m 444   libc.a /usr/lib
install -C -o root -g wheel -m 444   libc_p.a /usr/lib
install -s -o root -g wheel -m 444   -fschg -S  libc.so.7 /lib
ln -fs /lib/libc.so.7  /usr/lib/libc.so
ln: /usr/lib/libc.so: Operation not permitted
*** Error code 1
In this case I think your libc.so.7 library is being installed with the schg flag, so try to remove it.

For further information read the man page of chflags.

Last edited by DNAeon; 18th September 2008 at 09:38 PM.
Reply With Quote