From owner-freebsd-stable Tue Aug 13 7: 9:23 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8607F37B400 for ; Tue, 13 Aug 2002 07:09:20 -0700 (PDT) Received: from bunrab.catwhisker.org (adsl-63-193-123-122.dsl.snfc21.pacbell.net [63.193.123.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id 88D6143E3B for ; Tue, 13 Aug 2002 07:09:16 -0700 (PDT) (envelope-from david@catwhisker.org) Received: from bunrab.catwhisker.org (localhost [127.0.0.1]) by bunrab.catwhisker.org (8.12.5/8.12.5) with ESMTP id g7DE9Gmr005483; Tue, 13 Aug 2002 07:09:16 -0700 (PDT) (envelope-from david@bunrab.catwhisker.org) Received: (from david@localhost) by bunrab.catwhisker.org (8.12.5/8.12.5/Submit) id g7DE9GmN005482; Tue, 13 Aug 2002 07:09:16 -0700 (PDT) Date: Tue, 13 Aug 2002 07:09:16 -0700 (PDT) From: David Wolfskill Message-Id: <200208131409.g7DE9GmN005482@bunrab.catwhisker.org> To: stable@FreeBSD.ORG, stevep-hv@zpfe.com Subject: Re: Need instructions: build kernel on one machine; install on another In-Reply-To: <5.1.0.14.2.20020813084802.037d9498@magpie.zpfe.com> Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG >Date: Tue, 13 Aug 2002 08:56:18 -0500 >From: Steve Peterson >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