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 |
On 6/17/11 10:01 PM, Glen Barber wrote:> Hey, > > On 6/17/11 9:22 PM, Jeremy Chadwick wrote: >> 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. >> > > /path/to/directory should be the 'R/' directory from the 'make release' > process, a subdirectory of the CHROOTDIR target. >Oops, my mistake. There's more to the hierarchy that I neglected. '/path/to/directory' in my case is '/usr/release/R/cdrom/disc1/8-STABLE', where '/usr/release' is CHROOTDIR. Again, I'd be happy to be proven wrong, or inaccurate. Regards, -- Glen Barber | gjb@FreeBSD.org FreeBSD Documentation Project
Hey, On 6/17/11 9:22 PM, Jeremy Chadwick wrote:> 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. >/path/to/directory should be the 'R/' directory from the 'make release' process, a subdirectory of the CHROOTDIR target.> Is the procedure for creating new FreeBSD memstick images documented > anywhere? >I'd be happy to be proven wrong, but I don't think so. The release process for 9.x builds the memstick by default, so I'm not sure it's worth updating the 7.x/8.x documentation for this. Regards, -- Glen Barber | gjb@FreeBSD.org FreeBSD Documentation Project
On Sat, Jun 18, 2011 at 3:22 AM, Jeremy Chadwick <freebsd@jdc.parodius.com> wrote:> Is the procedure for creating new FreeBSD memstick images documented > anywhere? >I'm not sure if its documented but this is how I do it: (edit /etc/make.conf and /etc/src.conf if necessary) make buildworld && make buildkernel Insert usb stick fdisk -BI /dev/da0 bsdlabel -B -w da0s1 newfs -U /dev/da0s1a mount /dev/ad0s1a /mnt make installworld installkernel distribution DESTDIR=/mnt Edit /mnt/etc/fstab /dev/da0s1a / ufs rw 1 1 Edit /mnt/etc/rc.conf for your needs unmount /mnt :-) -- chs,