Browse Source

more <> escaping..

main
John-Mark Gurney 3 years ago
parent
commit
8ff0467555
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      content/2014/10/building-bhyve-images-using-makefs-and.html

+ 5
- 5
content/2014/10/building-bhyve-images-using-makefs-and.html View File

@@ -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: 1. Install world and distribution into a temporary directory using the `NO_ROOT` option:
<pre class="fullwidth"><code> <pre class="fullwidth"><code>
make installworld DESTDIR=<tmpdir> -DDB_FROM_SRC -DNO_ROOT
make distribution DESTDIR=<tmpdir> -DDB_FROM_SRC -DNO_ROOT
make installworld DESTDIR=&lt;tmpdir&gt; -DDB_FROM_SRC -DNO_ROOT
make distribution DESTDIR=&lt;tmpdir&gt; -DDB_FROM_SRC -DNO_ROOT
</code></pre> </code></pre>
This preps everything with the defaults as necessary. 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: 2. Install a kernel either into a different directory (I do this) or into the same directory above:
<pre class="fullwidth"><code> <pre class="fullwidth"><code>
make installkernel DESTDIR=<tmpkerndir> -DNO_ROOT KERNCONF=<conf>
make installkernel DESTDIR=&lt;tmpkerndir&gt; -DNO_ROOT KERNCONF=&lt;conf&gt;
</code></pre> </code></pre>
3. Make a directory with your custom configuration files. The basics 3. Make a directory with your custom configuration files. The basics
are `/etc/rc.conf` and `/etc/fstab` and you might want `/firstboot` on 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. 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`: 4. Build the ufs image using the `makeroot.sh` script in the src tree at `tools/tools/makeroot/makeroot.sh`:
<pre class="fullwidth"><code> <pre class="fullwidth"><code>
/usr/src/tools/tools/makeroot/makeroot.sh -e <custdir>/METALOG -e <tmpkerndir>/METALOG -p <tmpdir>/etc/master.passwd -s 2g ufs.img root
/usr/src/tools/tools/makeroot/makeroot.sh -e &lt;custdir&gt;/METALOG -e &lt;tmpkerndir&gt;/METALOG -p &lt;tmpdir&gt;/etc/master.passwd -s 2g ufs.img root
</code></pre> </code></pre>
5. Build the disc image: 5. Build the disc image:
<pre class="fullwidth"><code> <pre class="fullwidth"><code>
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
mkimg -s gpt -b &lt;tmpdir&gt;/boot/pmbr -p freebsd-boot:=&lt;tmpdir&gt;/boot/gptboot -p freebsd-swap::1G -p freebsd-ufs:=ufs.img -o disc.img
</code></pre> </code></pre>
6. Run the image: 6. Run the image:
<pre class="fullwidth"><code> <pre class="fullwidth"><code>


Loading…
Cancel
Save