Customized Releases with updated sources and a Custom Kernel

John Baldwin jhb at freebsd.org
Thu Mar 16 15:48:03 UTC 2006


On Thursday 16 March 2006 10:26, Tom Daly wrote:
> Hi,
> I'd like to confirm my steps in building a customized FreeBSD release CD.
> 
> The goal is to streamline server installation steps by having a CDROM that 
> will install FreeBSD 6.0 Release p5, and install a custom kernel on the 
> machine as well.
> 
> I am taking the following steps:
> 
> cd /usr/src/release
> 
> sudo make release \
>    CHROOTDIR=/raid/release \
>    BUILDNAME=6.0-RELEASE-amd64-PE2850 \
>    CVSROOT=/home/tom/cvs \
>    RELEASETAG=RELENG_6_0 \
>    MAKE_ISOS=YES \
>    KERNELS=DELL2850 \
>    LOCAL_SCRIPT=/home/tom/release-local.sh
> | tee /tmp/output.txt
> 
> release-local.sh simply copies the kernel file DELL2850 into 
> /raid/release/usr/src/sys/amd64/.
> 
> Does this make sense? Will my sources be up to date in this case? Also, 
> the DELL2850 kernel is not the kernel I end up booting off of. Will simply 
> mv'ing the new kernel directory into place do the trick?

Yes.  I actually have hacked the release/Makefile locally to keep the
GENERIC kernel in /boot/kernel.GENERIC/ and install my custom kernel
config in /boot/kernel (though I currently do this on 4.x rather than
6.x).

-- 
John Baldwin <jhb at FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org


More information about the freebsd-hackers mailing list