Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Sep 2001 13:40:06 -0500
From:      Mike Meyer <mwm@mired.org>
To:        Mark Rowlands <mark.rowlands@minmail.net>
Cc:        questions@freebsd.org, bsdneophyte@yahoo.com
Subject:   Re: compile kernel first or make world first?
Message-ID:  <15284.50182.74103.964293@guru.mired.org>
In-Reply-To: <28947546@toto.iv>

next in thread | previous in thread | raw e-mail | index | archive | help
Mark Rowlands <mark.rowlands@minmail.net> types:
> On Tuesday 25 September 2001 8:38 am, Bsd Newbie wrote:
> > make world and then kernel or.....
> 
> #!/bin/sh
> cvsup -g -L1 /root/sup 2>&1 > /usr/home/cs
> cd /usr/src
> 
> make buildworld 2>&1 > /usr/home/bw  && \
> make buildkernel KERNCONF=MARK  2>&1 > /usr/home/bk &&  \
> make installkernel KERNCONF=MARK  2>&1 > /usr/home/ik  && \
> make installworld   2>&1 >  /usr/home/iw && \
> mergemaster
> 
> gets me there

You left out a critical step - rebooting - and can save a step. You
have to reboot to start the new kernel, and the right time to do it is
before installing the world - as it's a lot easier to back out the
kernel than the world if the kernel doesn't boot. You can also use the
"kernel" target to do the buildkernel and installkernel in a single
step:

make buildworld 2>&1 > /usr/home/bw && \
make kernel KERNCONF=MARK  2>&1 > /usr/home/bik

Now reboot. It's actually best to be in single user mode for the
install world and mergemaster, but it's generally not a problem.

make installworld   2>&1 >  /usr/home/iw && \
mergemaster

If you weren't in single user mode, you'll need to reboot again to get
the current version of the various daemons running. If you were in
single user mode, you can just exit the single user shell and go
multi-user, though that will screw up /var/run/dmesg.boot.

	<mike
--
Mike Meyer <mwm@mired.org>			http://www.mired.org/home/mwm/
Q: How do you make the gods laugh?		A: Tell them your plans.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15284.50182.74103.964293>