From owner-freebsd-stable@FreeBSD.ORG Mon Feb 1 02:56:42 2010 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 AEE41106566C for ; Mon, 1 Feb 2010 02:56:41 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.freebsd.org (Postfix) with ESMTP id 124E08FC12 for ; Mon, 1 Feb 2010 02:56:40 +0000 (UTC) Received: from inchoate.gsoft.com.au ([203.31.81.30]) (authenticated bits=0) by cain.gsoft.com.au (8.13.8/8.13.8) with ESMTP id o112uYIV035496 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Mon, 1 Feb 2010 13:26:34 +1030 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: Garrett Cooper Date: Mon, 1 Feb 2010 13:26:24 +1030 User-Agent: KMail/1.9.10 References: <1264828108.4948.18.camel@neo.cse.buffalo.edu> <201002011142.46490.doconnor@gsoft.com.au> <7d6fde3d1001311801i5d19ed65wb062d5b5f8130740@mail.gmail.com> In-Reply-To: <7d6fde3d1001311801i5d19ed65wb062d5b5f8130740@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1331191.mNPq3rDmfx"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201002011326.32384.doconnor@gsoft.com.au> X-Spam-Score: -3.637 () ALL_TRUSTED,AWL,BAYES_00 X-Scanned-By: MIMEDefang 2.63 on 203.31.81.10 Cc: freebsd-stable@freebsd.org, Ian Smith , Ken Smith Subject: Re: 7.3-BETA1 Available... [memstick.img?] 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: Mon, 01 Feb 2010 02:56:42 -0000 --nextPart1331191.mNPq3rDmfx Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Mon, 1 Feb 2010, Garrett Cooper wrote: > =A0 =A0 Could you please describe the process to me in more detail (i.e > what tools are used, high-level process req'd, etc)? I am going to be > doing something similar for work [at Ironport] and if I can do it in > a better manner and it would be accepted into the tree, that would be > the option I'd take for resolving this bootable media, for my work as > well as for the community as a whole. I do a make release then run this script on the resulting DVD=20 directory.. http://www.gsoft.com.au/~doconnor/makeusb.sh ie.. /tmp/makeusb.sh /tmp/${RELNAME}-release/R/cdrom/dvd1 /dev/da1 Then mount it onto /mnt and do cp -r /tmp/${RELNAME}-release/R/cdrom/dvd1/${BUILDNAME} /mnt It creates an MFS using makefs which syslinux can load and then the=20 loader runs, loads the kernel and the MFS (nested MFS - bleh) and then=20 boots as usual for an install. Once the kernel starts the USB stick is accessable as daX as a FAT=20 partition. I have tried getting syslinux to just run the loader from an MFS (which=20 works) but I can't get the loader to read the USB stick for some reason=20 even though AFAICS it should grok FAT32 disks. I didn't really know how=20 to debug it any further though so I went with the less elegant MFS in=20 MFS route. Also I imagine gpart could be used (in HEAD anyway) instead of the fdisk=20 voodoo I have. Note that while it references logo.lss it doesn't actually copy it over=20 (it's my company's logo, but anything would suffice and it's optional -=20 syslinux ignores the directive if the file doesn't exist) I hope you find it useful and it gets in the tree :) Thanks. =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart1331191.mNPq3rDmfx Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (FreeBSD) iD8DBQBLZkLg5ZPcIHs/zowRArzbAJ97sRH+1fpynMMaR+6aHyMkYaR+jACdFkH+ NIC/mGcsSPi/HIwKAgsCHek= =NFc0 -----END PGP SIGNATURE----- --nextPart1331191.mNPq3rDmfx--