From owner-freebsd-stable@FreeBSD.ORG Sat Jun 18 01:23:01 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ACBF51065679 for ; Sat, 18 Jun 2011 01:23:01 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from qmta06.westchester.pa.mail.comcast.net (qmta06.westchester.pa.mail.comcast.net [76.96.62.56]) by mx1.freebsd.org (Postfix) with ESMTP id 5BD5C8FC0A for ; Sat, 18 Jun 2011 01:23:00 +0000 (UTC) Received: from omta09.westchester.pa.mail.comcast.net ([76.96.62.20]) by qmta06.westchester.pa.mail.comcast.net with comcast id xDGr1g0010SCNGk56DP1pr; Sat, 18 Jun 2011 01:23:01 +0000 Received: from koitsu.dyndns.org ([67.180.84.87]) by omta09.westchester.pa.mail.comcast.net with comcast id xDNy1g0131t3BNj3VDNz3E; Sat, 18 Jun 2011 01:23:00 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id 9C6CC102C19; Fri, 17 Jun 2011 18:22:57 -0700 (PDT) Date: Fri, 17 Jun 2011 18:22:57 -0700 From: Jeremy Chadwick To: freebsd-stable@freebsd.org Message-ID: <20110618012257.GA84652@icarus.home.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Cc: nwhitehorn@freebsd.org, kensmith@freebsd.org, mm@freebsd.org Subject: Building your own FreeBSD USB memstick image X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Jun 2011 01:23:01 -0000 CC'ing Ken, Nathan, and Martin since they all have some insight to this procedure. Given the recent MFC of graid(8) to RELENG_8, I'd like to make my own FreeBSD USB memstick image but with the latest RELENG_8 kernel/world. For the USB memstick, I've found src/release/scripts/make-memstick.sh, but there's no real explanation as to what "/path/to/directory" should be, and that's probably because I'm not familiar with the "build a base system" infrastructure. Is the procedure for creating new FreeBSD memstick images documented anywhere? I've got some hints on the web that one should be using the DESTDIR knob to accomplish this when building/installing world/kernel. So would something like this be the correct procedure (on a system already running the latest RELENG_8 tag): mkdir /newimage (or preferably a big filesystem) cd /usr/src make DESTDIR=/newimage buildworld make DESTDIR=/newimage buildkernel make DESTDIR=/newimage installkernel make DESTDIR=/newimage installworld cd /usr/src/release/scripts ./make-memstick.sh /newimage /var/tmp/my-memstick.img I'd be surprised if it were really that easy, since Martin's "make your own ISO image" stuff seems to do a heck of a lot more than that: https://box.vx.sk/wsvn/mfsbsd/trunk/Makefile -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, US | | Making life hard for others since 1977. PGP 4BD6C0CB |