NetBSD/distrib/amd64/ramdisks
roy 5403a7a7c1 zfs: build a ramdisk on amd64 with enough to mount rpool/ROOT on /
Until we get ZFS integrated into our boot loader, this is the next best
thing. The idea is simple - have a small FFS partition with a kernel,
modules and this ramdisk. Once the ramdisk boots it will mount the FFS
partition read only, copy the needed ZFS modules to the ramdisk and then
unmount the partition. Then we import the ZFS root pool, mount the
ZFS root filesystem and then pivot to it.

Because the initial FFS partition is not mounted at this point, we
can mount it in /altroot so we can replace the kernel and modules with
newer ones so it's easily maintainable.

This ZFS boot strapper currently makes the following assumptions:
 * The device NAME=boot is the FFS with kernel, modules and this ramdisk.
 * The ZFS root pool and root filesystem are called rpool/ROOT.

A boot.cfg menu entry can then be added like so:
menu=Boot ZFS root:fs /ramdisk-zfsroot.fs;boot
2020-02-22 09:53:47 +00:00
..
common PR install/54780: in the (of course totally unlikely) case that sysinst 2020-01-09 19:17:40 +00:00
ramdisk Add newfs_msdos to amd64 install media, proposed on port-amd64@ back in 2019-07-20 15:55:40 +00:00
ramdisk-cgdroot Add a symlink to /altroot/stand to help the kernel find modules. 2019-04-11 23:50:01 +00:00
ramdisk-zfsroot zfs: build a ramdisk on amd64 with enough to mount rpool/ROOT on / 2020-02-22 09:53:47 +00:00
Makefile Remove MKCRYPTO option. 2017-05-21 15:28:36 +00:00