From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 18 08:57:46 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2F3381065672 for ; Tue, 18 Nov 2008 08:57:46 +0000 (UTC) (envelope-from mail25@bzerk.org) Received: from ei.bzerk.org (tunnel490.ipv6.xs4all.nl [IPv6:2001:888:10:1ea::2]) by mx1.freebsd.org (Postfix) with ESMTP id 950F08FC19 for ; Tue, 18 Nov 2008 08:57:45 +0000 (UTC) (envelope-from mail25@bzerk.org) Received: from ei.bzerk.org (BOFH@localhost [127.0.0.1]) by ei.bzerk.org (8.14.2/8.14.2) with ESMTP id mAI8vdlm095286; Tue, 18 Nov 2008 09:57:39 +0100 (CET) (envelope-from mail25@bzerk.org) Received: (from bulk@localhost) by ei.bzerk.org (8.14.2/8.14.2/Submit) id mAI8vdam095285; Tue, 18 Nov 2008 09:57:39 +0100 (CET) (envelope-from mail25@bzerk.org) Date: Tue, 18 Nov 2008 09:57:39 +0100 From: Ruben de Groot To: Peter Steele Message-ID: <20081118085739.GA95079@ei.bzerk.org> Mail-Followup-To: Ruben de Groot , Peter Steele , freebsd-hackers@freebsd.org References: <2ACA3DE8F9758A48B8BE2C7A847F91F23B505B@polaris.maxiscale.com> <2ACA3DE8F9758A48B8BE2C7A847F91F23B5102@polaris.maxiscale.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2ACA3DE8F9758A48B8BE2C7A847F91F23B5102@polaris.maxiscale.com> User-Agent: Mutt/1.4.2.3i X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on ei.bzerk.org X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (ei.bzerk.org [127.0.0.1]); Tue, 18 Nov 2008 09:57:43 +0100 (CET) X-Mailman-Approved-At: Tue, 18 Nov 2008 12:42:24 +0000 Cc: freebsd-hackers@freebsd.org Subject: Re: How can I add new binaries to the mfsroot image? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Nov 2008 08:57:46 -0000 On Mon, Nov 17, 2008 at 03:56:26PM -0800, Peter Steele typed: > >I'll have to check this out. I'm not getting anywhere with trying to > >customize mfsroot with my current approach... > > The goal we are trying to achieve btw is to make gmirror available > during an install so that the file systems are mirrored right from the > get-go, so that we can avoid having to go through the process of > converting a system as a post operation. The standard slicing/partition > commands of sysinstall do support the creation of a mirrored file system > though, so our idea was to run a script via install.cfg to take care of > fdisk/bsdlabel/gmirror phase, and then install the packages in the > normal fashion via subsequent steps in install.cfg. > > Is this something that can be done via sysinstall? If not, what's the > best alternative? This whole process is targeted to be on a PXE boot > server so we can configure our systems in a completely automated > hands-off manner. We have 200+ FreeBSD systems and we definitely need an > automated process. We already have it working fine, but without > mirroring. We can upgrade doezens of systems at a time simply by making > them boot from our PXE server. We now need to tweak this process so that > we can establish the mirrored file systems as part of the automated > install. What I've done in the past is skip sysinstall alltogether and just boot of an NFS root. Then use custom scripts for the slicing/partitioning/ mirroring, copy a minimal system to disk and pkg_add the rest. Would be nice to do all this with install.cfg though. Please let me know when you get this working. Ruben