From owner-freebsd-current@FreeBSD.ORG Thu Sep 17 07:47:20 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 17BC5106568D for ; Thu, 17 Sep 2009 07:47:20 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from poseidon.ceid.upatras.gr (poseidon.ceid.upatras.gr [150.140.141.169]) by mx1.freebsd.org (Postfix) with ESMTP id 8625B8FC0A for ; Thu, 17 Sep 2009 07:47:19 +0000 (UTC) Received: from mail.ceid.upatras.gr (unknown [10.1.0.143]) by poseidon.ceid.upatras.gr (Postfix) with ESMTP id 4401CEB55FF; Thu, 17 Sep 2009 10:47:18 +0300 (EEST) Received: from localhost (europa.ceid.upatras.gr [127.0.0.1]) by mail.ceid.upatras.gr (Postfix) with ESMTP id 34CD645152; Thu, 17 Sep 2009 10:47:18 +0300 (EEST) X-Virus-Scanned: amavisd-new at ceid.upatras.gr Received: from mail.ceid.upatras.gr ([127.0.0.1]) by localhost (europa.ceid.upatras.gr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lwi1uQl8BFM7; Thu, 17 Sep 2009 10:47:18 +0300 (EEST) Received: from kobe.laptop (cm35.psi155.maxonline.com.sg [58.146.155.35]) by mail.ceid.upatras.gr (Postfix) with ESMTP id 26BCC45148; Thu, 17 Sep 2009 10:47:16 +0300 (EEST) Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.3/8.14.3) with ESMTP id n8H7lCvv018332 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 17 Sep 2009 15:47:12 +0800 (SGT) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.3/8.14.3/Submit) id n8H7lAcQ018331; Thu, 17 Sep 2009 15:47:10 +0800 (SGT) (envelope-from keramida@ceid.upatras.gr) From: Giorgos Keramidas To: Mel Flynn References: <200909162004.09757.mel.flynn+fbsd.current@mailing.thruhere.net> Date: Thu, 17 Sep 2009 15:47:10 +0800 In-Reply-To: <200909162004.09757.mel.flynn+fbsd.current@mailing.thruhere.net> (Mel Flynn's message of "Wed, 16 Sep 2009 20:04:09 +0200") Message-ID: <87bplaqagx.fsf@kobe.laptop> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-current@freebsd.org Subject: Re: About the usb img. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Sep 2009 07:47:20 -0000 On Wed, 16 Sep 2009 20:04:09 +0200, Mel Flynn wrote: > Hi, > How is the USB img built? I find no mention of this in > /usr/src/release and http://www.freebsd.org/doc/en_US.ISO8859-1/articles/releng/release-build.html > is rather stale. Hi Mel, You are right that the releng article needs a few updates. You can see the commands that builds the UFS miniroot image in `src/release/Makefile' near line 1095: 1086 # 1087 # --==## Setup a suitable cdrom-area ##==-- 1088 # 1089 cdrom.3: 1090 .if defined(CD_BOOT) 1091 @echo "Building bootonly CDROM filesystem image" 1092 @mkdir -p ${CD_BOOT} 1093 @cp -Rp ${CD_LIVEFS}/boot ${CD_BOOT} 1094 @echo "CD_VERSION = ${BUILDNAME}" > ${CD_BOOT}/cdrom.inf X 1095 .if defined(MINIROOT) X 1096 @echo "Building bootonly UFS filesystem image" X 1097 @mkdir -p ${FD}/miniroot X 1098 @sh -e ${DOFS_SH} ${FD}/miniroot/miniroot.ufs \ X 1099 ${RD} ${MNT} 0 ${CD_BOOT} 8192 auto X 1100 @${ZIPPER} -v ${FD}/miniroot/miniroot.ufs X 1101 .endif 1102 .endif 1103 touch ${.TARGET} The UFS miniroot is now built as part of the `cdrom.3' target, but it may make sense to split it off to a target of its own if we want to make it possible to build a UFS miniroot _without_ a CD-ROM ISO image.