Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Feb 2010 13:26:24 +1030
From:      "Daniel O'Connor" <doconnor@gsoft.com.au>
To:        Garrett Cooper <yanefbsd@gmail.com>
Cc:        freebsd-stable@freebsd.org, Ian Smith <smithi@nimnet.asn.au>, Ken Smith <kensmith@buffalo.edu>
Subject:   Re: 7.3-BETA1 Available... [memstick.img?]
Message-ID:  <201002011326.32384.doconnor@gsoft.com.au>
In-Reply-To: <7d6fde3d1001311801i5d19ed65wb062d5b5f8130740@mail.gmail.com>
References:  <1264828108.4948.18.camel@neo.cse.buffalo.edu> <201002011142.46490.doconnor@gsoft.com.au> <7d6fde3d1001311801i5d19ed65wb062d5b5f8130740@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201002011326.32384.doconnor>