forked from CTSRD-CHERI/cheribuild
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for simple ZFS root filesystem images. The images contain a single 5GiB pool (zroot) mounted at /. They are enabled with the option "--disk-image/rootfs-type zfs" ("ufs" is the default.) In the process, alter the way we create /etc/fstab. For entries that depend on command line options, insert them directly and then amend the template file (pycheribuild/files/cheribsd/fstab.in) for constant or user-specific entries. This has been tested on morello-purecap and amd64. The results should work on any platform that uses the FreeBSD loader as kernels don't typically contain the ZFS module. This means it will not work on RISC-V unless the kernel configuration is altered to build ZFS in.
- Loading branch information
1 parent
8af1669
commit 2204bdc
Showing
2 changed files
with
51 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
/dev/ufs/root / ufs rw,noatime 1 1 | ||
tmpfs /tmp tmpfs rw,failok 0 0 | ||
/dev/gpt/swap none swap sw,failok 0 0 | ||
|
||
# Uncomment to automount the default QEMU smbfs | ||
# //10.0.2.4/qemu /mnt smbfs rw,-I=10.0.2.4,-N 0 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters