From owner-freebsd-questions Tue Jul 16 23:38:11 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D9B3537B400 for ; Tue, 16 Jul 2002 23:38:04 -0700 (PDT) Received: from clmboh1-smtp3.columbus.rr.com (clmboh1-smtp3.columbus.rr.com [65.24.0.112]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0EBF743E31 for ; Tue, 16 Jul 2002 23:38:04 -0700 (PDT) (envelope-from jarnold@knightridder.com) Received: from jimarnold.org (a11a174.neo.lrun.com [204.210.192.174]) by clmboh1-smtp3.columbus.rr.com (8.11.2/8.11.2) with ESMTP id g6H3upU14310; Tue, 16 Jul 2002 23:56:51 -0400 (EDT) Received: from [192.168.0.4] (mac [192.168.0.4]) by jimarnold.org (Postfix) with ESMTP id E993F368F; Tue, 16 Jul 2002 23:56:49 -0400 (EDT) Mime-Version: 1.0 X-Sender: jim@spike Message-Id: In-Reply-To: References: Date: Tue, 16 Jul 2002 23:56:43 -0400 To: John Mills , freebsd-questions@freebsd.org From: Jim Arnold Subject: Re: Question on order and targets of kernel and world builds Content-Type: multipart/alternative; boundary="============_-1185244291==_ma============" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --============_-1185244291==_ma============ Content-Type: text/plain; charset="us-ascii" ; format="flowed" >I would appreciate a bit more information on the 'world' and 'kernel' >building process. Please point me at the right section of the Handbook or >Greg's book if there is a succinct description. http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cutting-edge.html >I have been doing 'CVSUP' followed by: > ># make buildworld ># make installworld ># make buildkernel ># make installkernel > >without really knowing if this was a useful order or exactly what I was >accomplishing with each target. My question is: > > 1) Can I 'make buildworld' to create my tools and supporting files, then > 2) Use the newly made "world" to 'make buildkernel', and then > 3) 'make installworld; make installkernel' to install these new filesets > for general use? > >I would like to know if this is an acceptable and conservative way to do a >rebuild, and to better understand what I get at each step. Here are the steps I follow. Note that I previously built a custom kernel and I am using that below. Replace "CUSTOM" with whatever you named your kernel. Please *read the handbook* as things can get confusing. Not something you want to fubar at 2 am. Mergemaster especially can be tricky until you figure out what's going on. Good luck. 1. # cd /usr/obj # chflags -R noschg * # rm -rf * 2. #make buildworld 3. #make buildkernel KERNCONF=CUSTOM 4. #make installkernel KERNCONF=CUSTOM 5. boot into single user mode 6. #make installworld 7. # cp -Rp /etc /etc.old 8. # mergemaster -cv 9. reboot -- ________________________________________ Jim Arnold - Ohio.com - jarnold@knightridder.com Cell: 330.730.0797 Voice: 330.572.2822 AOL IM: instantjim / Yahoo: jim0266 --============_-1185244291==_ma============ Content-Type: text/html; charset="us-ascii" Re: Question on order and targets of kernel and world
I would appreciate a bit more information on the 'world' and 'kernel'
building process. Please point me at the right section of the Handbook or
Greg's book if there is a succinct description.

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cutting-edge.html


I have been doing 'CVSUP' followed by:

# make buildworld
# make installworld
# make buildkernel
# make installkernel

without really knowing if this was a useful order or exactly what I was
accomplishing with each target. My question is:

 1) Can I 'make buildworld' to create my tools and supporting files, then
 2) Use the newly made "world" to 'make buildkernel', and then
 3) 'make installworld; make installkernel' to install these new filesets
    for general use?

I would like to know if this is an acceptable and conservative way to do a
rebuild, and to better understand what I get at each step.

Here are the steps I follow. Note that I previously built a custom kernel
and I am using that below. Replace "CUSTOM" with whatever you named your kernel.

Please *read the handbook* as things can get confusing. Not something you
want to fubar at 2 am. Mergemaster especially can be tricky until you figure out
what's going on. Good luck.

1.
# cd /usr/obj
# chflags -R noschg *
# rm -rf *

2. #make buildworld

3. #make buildkernel KERNCONF=CUSTOM

4. #make installkernel KERNCONF=CUSTOM

5. boot into single user mode

6. #make installworld

7. # cp -Rp /etc /etc.old

8. # mergemaster -cv

9. reboot
-- 
________________________________________
Jim Arnold -  Ohio.com - jarnold@knightridder.com
Cell: 330.730.0797     Voice: 330.572.2822
AOL IM: instantjim    /    Yahoo: jim0266    
--============_-1185244291==_ma============-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message