Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Aug 2002 07:09:16 -0700 (PDT)
From:      David Wolfskill <david@catwhisker.org>
To:        stable@FreeBSD.ORG, stevep-hv@zpfe.com
Subject:   Re: Need instructions:  build kernel on one machine;  install on another
Message-ID:  <200208131409.g7DE9GmN005482@bunrab.catwhisker.org>
In-Reply-To: <5.1.0.14.2.20020813084802.037d9498@magpie.zpfe.com>

next in thread | previous in thread | raw e-mail | index | archive | help
>Date: Tue, 13 Aug 2002 08:56:18 -0500
>From: Steve Peterson <stevep-hv@zpfe.com>

>Hi -- I'm looking for a pointer to instructions on how to take a kernel 
>built on one machine and install it on another.  I checked the handbook and 
>the FAQ to no avail, and did some searching of the mailing list that came 
>up empty.  I've built & installed kernels using "make buildkernel ; make 
>installkernel", so I'm not a total newbie to kernel building.

For machines where the NFS-mounting is accptable, what I have done is:

* On the build machine
  * Update the machine per UPDATING
  * once rebooted, and verified that behavior is as expected:
    * cd /usr/src
    * foreach k ( list of kernel configs for target machines here ... )
        make buildkernel KERNCONF=$k
      end

Once that's done, for each target machine
  * ensure that / & /usr are mounted read-write
  * mount ${buildmachine}:/usr/src /usr/src	# can be read-only
  * mount ${buildmachine}:/usr/obj /usr/obj	# can be read-only
  * cd /usr/src
  * make installkernel KERNCONF=target_kernel_config
  * make installworld
  * mergemaster
  * reboot

Note that I've gotten away with avoiding the single-user reboot that is
recommended for immediately following the "make installkernel".  YMMV.

Cheers,
david       (links to my resume at http://www.catwhisker.org/~david)
-- 
David H. Wolfskill				david@catwhisker.org
To paraphrase David Hilbert, there can be no conflicts between Microsoft
and the discipline of systems administration, since they have nothing in
common.

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




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