From 4b17c5381d8009f7dcd90cf6d2281faa920aef2b Mon Sep 17 00:00:00 2001 From: Thorsten Behrens Date: Sun, 19 Apr 2020 09:25:08 -0400 Subject: [PATCH] Added notes about installing and kernel modules --- Building-ZFS.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Building-ZFS.md b/Building-ZFS.md index 578ddf8..e1c3eca 100644 --- a/Building-ZFS.md +++ b/Building-ZFS.md @@ -89,6 +89,13 @@ make -s -j$(nproc) make deb #example for Debian/Ubuntu ``` +#### Install + +You can run `zfs-tests.sh` without installing ZFS, see below. If you have reason to install ZFS after building it, pay attention to how your distribution handles kernel modules. +On Ubuntu, for example, the modules from this repository install in the `extra` kernel module path, which is not in the standard `depmod` search path. Therefore, for the duration of your testing, edit `/etc/depmod.d/ubuntu.conf` and add `extra` to the beginning of the search path. + +You may then install using `sudo make install; sudo ldconfig; sudo depmod`. You'd uninstall with `sudo make uninstall; sudo ldconfig; sudo depmod`. + #### Running zloop.sh and zfs-tests.sh If you wish to run the ZFS Test Suite (ZTS), then `ksh` and a few additional utilities must be installed. @@ -140,4 +147,4 @@ sudo ./scripts/zloop.sh [spl-repo]: https://github.com/zfsonlinux/spl [zfs-repo]: https://github.com/zfsonlinux/zfs [buildbot]: http://build.zfsonlinux.org/ -[zts-readme]: https://github.com/zfsonlinux/zfs/tree/master/tests \ No newline at end of file +[zts-readme]: https://github.com/zfsonlinux/zfs/tree/master/tests