| @@ -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=<tmpdir> -DDB_FROM_SRC -DNO_ROOT | |||||
| make distribution DESTDIR=<tmpdir> -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=<tmpkerndir> -DNO_ROOT KERNCONF=<conf> | |||||
| </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 <custdir>/METALOG -e <tmpkerndir>/METALOG -p <tmpdir>/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 <tmpdir>/boot/pmbr -p freebsd-boot:=<tmpdir>/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> | ||||