OpenGrok
Cross Reference: mtree.zfsroot
xref
: /
src
/
distrib
/
common
/
mtree.zfsroot
Home
|
History
|
Annotate
|
Download
|
only in
common
History log of
/src/distrib/common/mtree.zfsroot
Revision
Date
Author
Comments
1.3
23-Feb-2020
roy
branches: 1.3.4;
ramdisk-zfsroot: We no longer need to have /etc/zfs in mtree
Now that mountall doesn't rely on /etc/zfs/zpool.cache being present.
1.2
23-Feb-2020
roy
zfs: Allow modules to be loaded once in the ZFS chroot
Rather than copying the needed modules from FFS to the ramdisk,
load then directly from FFS instead.
This way, we can symlink ramdisk stand into /altroot and let nature take
it's course like loading firmware.
Set shell exit on error rather than using chained commands.
zpool import seems to SIGBUS randomly on amd64 and if we didn't do the
former then zpool would hang the init. Now at least we exit to the shell.
1.1
22-Feb-2020
roy
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
1.3.4.2
08-Apr-2020
martin
Merge changes from current as of 20200406
1.3.4.1
23-Feb-2020
martin
file mtree.zfsroot was added on branch phil-wifi on 2020-04-08 14:03:44 +0000
Indexes created Wed Oct 22 13:09:56 GMT 2025