aboutsummaryrefslogtreecommitdiff
path: root/personal/zfs/README
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-10-26 00:14:42 +0300
committerCem Keylan <cem@ckyln.com>2020-10-26 00:14:42 +0300
commite1503b3810498413882f4cf0a45cb450fdb3f6a0 (patch)
treeeeb90af550549b85355d2d199d7e7dae6fdebf84 /personal/zfs/README
parentf6e1e57c679f8a282b53d65736cdd3b22a653cd0 (diff)
downloadrepository-e1503b3810498413882f4cf0a45cb450fdb3f6a0.tar.gz
zfs: bump to 0.8.5
Diffstat (limited to 'personal/zfs/README')
-rw-r--r--personal/zfs/README43
1 files changed, 43 insertions, 0 deletions
diff --git a/personal/zfs/README b/personal/zfs/README
new file mode 100644
index 0000000..ce85dc5
--- /dev/null
+++ b/personal/zfs/README
@@ -0,0 +1,43 @@
+The Z Filesystem on Carbs Linux
+===============================
+
+To run ZFS under Carbs, you need a kernel that supports modules. I personally
+don't use any of the in-kernel modules, but I still have modules enabled for
+this purpose. You can see my kernel configuration in this repository as well.
+
+If you are building ZFS for a different kernel version, specify the kernel
+version in the `KERNEL_VERSION` variable. Here is an example:
+
+ KERNEL_VERSION=5.8.9 cpt b zfs
+
+This will build for the target version, so you don't need to boot that kernel
+in order to build the module.
+
+
+Dependencies
+------------
+
+This package depends on 'libtirpc', but will probably link to more packages
+on your system, such as util-linux, libressl, and zlib. Even though I have
+tried linking all statically, it doesn't work.
+
+
+Making ZFS datasets available on boot
+-------------------------------------
+
+I personally don't have my root under ZFS, you will need further reading if that
+is your goal. I have two init scripts on '/etc/init' for mounting and unmounting
+ZFS.
+
+
+/etc/init/zfs.early-boot:
+
+ modprobe zfs
+ zpool import -a -f
+ zfs load-key -a
+ zfs mount -a
+
+
+/etc/init/zfs.pre.shutdown:
+
+ zfs umount -a