From owner-freebsd-hackers@FreeBSD.ORG Sun Jan 13 02:27:57 2008 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BE78B16A420 for ; Sun, 13 Jan 2008 02:27:57 +0000 (UTC) (envelope-from xistence@0x58.com) Received: from mailexchange.osnn.net (1e.66.5646.static.theplanet.com [70.86.102.30]) by mx1.freebsd.org (Postfix) with SMTP id 9FF5413C44B for ; Sun, 13 Jan 2008 02:27:57 +0000 (UTC) (envelope-from xistence@0x58.com) Received: (qmail 71001 invoked by uid 0); 13 Jan 2008 01:57:29 -0000 Received: from unknown (HELO wideload.network.lan) (xistence@0x58.com@68.228.228.123) by mailexchange.osnn.net with SMTP; 13 Jan 2008 01:57:29 -0000 Message-Id: From: Bert JW Regeer To: hackers@freebsd.org Content-Type: multipart/signed; boundary=Apple-Mail-6-691652653; micalg=sha1; protocol="application/pkcs7-signature" Mime-Version: 1.0 (Apple Message framework v915) Date: Sat, 12 Jan 2008 19:01:08 -0700 X-Mailer: Apple Mail (2.915) X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Using freebsd-update to install a clean system 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: Sun, 13 Jan 2008 02:27:57 -0000 --Apple-Mail-6-691652653 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Hello, I am working on a tool to automatically provision new servers, and currently have it working properly using netboot, the way we currently do it is to have our own /usr/src and /usr/obj that we keep up to date with the latest patches and versions. The machines netboot an image, that NFS mounts those, and fdisks/bsdlabels the local disk and mount that as /target/{tmp,usr,var}, from there we set DESTDIR and run make {installworld, installkernel, distrib-dirs, distribution}, write out an fstab file, set up a simple rc.conf and let the machine reboot. This process works great, however for stability reasons we are not able to rebuild the source tree, each time an advisory comes out, and would like a better way of automating this system. Now that freebsd- update looks like it is going to be a first class citizen, we would like to take advantage of it always being up to date, we would want to run our own local update server, and then using freebsd-update install an entire distribution, from scratch without first installing one from compiled sources. Is this possible? Is there some way I can tell freebsd-update to target /target/ and install every part that we would need (kernel/ generic, world/base, world/manpages), without there already being a system installed in that location? While using -b partially works, it throws back all kinds of errors: install: /target//boot/kernel/3dfx_linux.ko.symbols: No such file or directory install: /target//boot/kernel/aac.ko.symbols: No such file or directory install: /target//boot/kernel/aac_linux.ko.symbols: No such file or directory install: /target//boot/kernel/accf_data.ko.symbols: No such file or directory install: /target//boot/kernel/accf_http.ko.symbols: No such file or directory Also, looking at the freebsd-update.sh script, sometimes it does not have ${BASEDIR} in front of what it is doing, for example on line 2492: kldxref -R /boot/ 2>/dev/null Would that not have to be: kldxref -R ${BASEDIR}/boot/ 2>/dev/null ? Thank you, Bert JW Regeer --Apple-Mail-6-691652653--