diff --git a/content/2014/10/building-bhyve-images-using-makefs-and.html b/content/2014/10/building-bhyve-images-using-makefs-and.html index 62ef571..7111578 100644 --- a/content/2014/10/building-bhyve-images-using-makefs-and.html +++ b/content/2014/10/building-bhyve-images-using-makefs-and.html @@ -25,13 +25,13 @@ along with a completed buildworld and buildkernel. Then follow these steps: 1. Install world and distribution into a temporary directory using the `NO_ROOT` option:
- make installworld DESTDIR= -DDB_FROM_SRC -DNO_ROOT
- make distribution DESTDIR= -DDB_FROM_SRC -DNO_ROOT
+ make installworld DESTDIR=<tmpdir> -DDB_FROM_SRC -DNO_ROOT
+ make distribution DESTDIR=<tmpdir> -DDB_FROM_SRC -DNO_ROOT
This preps everything with the defaults as necessary.
2. Install a kernel either into a different directory (I do this) or into the same directory above:
- make installkernel DESTDIR= -DNO_ROOT KERNCONF=
+ make installkernel DESTDIR=<tmpkerndir> -DNO_ROOT KERNCONF=<conf>
3. Make a directory with your custom configuration files. The basics
are `/etc/rc.conf` and `/etc/fstab` and you might want `/firstboot` on
@@ -41,11 +41,11 @@ along with a completed buildworld and buildkernel. Then follow these steps:
The file contents are below.
4. Build the ufs image using the `makeroot.sh` script in the src tree at `tools/tools/makeroot/makeroot.sh`:
- /usr/src/tools/tools/makeroot/makeroot.sh -e /METALOG -e /METALOG -p /etc/master.passwd -s 2g ufs.img root
+ /usr/src/tools/tools/makeroot/makeroot.sh -e <custdir>/METALOG -e <tmpkerndir>/METALOG -p <tmpdir>/etc/master.passwd -s 2g ufs.img root
5. Build the disc image:
- mkimg -s gpt -b /boot/pmbr -p freebsd-boot:=/boot/gptboot -p freebsd-swap::1G -p freebsd-ufs:=ufs.img -o disc.img
+ mkimg -s gpt -b <tmpdir>/boot/pmbr -p freebsd-boot:=<tmpdir>/boot/gptboot -p freebsd-swap::1G -p freebsd-ufs:=ufs.img -o disc.img
6. Run the image: