Setting kernel name in buildkernel

FBSD_User FBSD_User at
Wed May 28 08:22:24 PDT 2003

Copy /kernel to different name, say kernela, and then recompile
kernel source containing changes and it will replace /kernel, then
copy /kernel to different name, say kernelb.  When you want to
return kernela copy kernela to kernel and reboot. You will have to
change the flag on /kernel before you can overwrite it.  Use
commands like this

chflags noschg /kernel
cp /kernela /kernel
chflags schg /kernel

-----Original Message-----
From: owner-freebsd-questions at
[mailto:owner-freebsd-questions at]On Behalf Of Krzysztof
Sent: Wednesday, May 28, 2003 11:08 AM
To: freebsd-questions at
Subject: Setting kernel name in buildkernel


Suppose I want to build a kernel that will be stored in a file with
a name that I chose instead of the usual /kernel.  Is there a way
to do that without manual file movements?  I suppose this could
interfere with the location of the modules somehow, but I don't know
for sure.

I would appreciate any suggestions for both, -stable and -current.

Thank you,

freebsd-questions at mailing list
To unsubscribe, send any mail to
"freebsd-questions-unsubscribe at"

More information about the freebsd-questions mailing list