Building your own FreeBSD USB memstick image

Jeremy Chadwick freebsd at
Sat Jun 18 01:23:01 UTC 2011

CC'ing Ken, Nathan, and Martin since they all have some insight to this

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/,
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

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
  ./ /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:

| Jeremy Chadwick                                jdc at |
| Parodius Networking              |
| UNIX Systems Administrator                   Mountain View, CA, US |
| Making life hard for others since 1977.               PGP 4BD6C0CB |

More information about the freebsd-stable mailing list