kiss-repository

personal kiss repository
git clone git://git.ckyln.com/~cem/kiss-repository.git
Log | Files | Refs | Submodules | README | LICENSE

README (1209B)


      1 The Z Filesystem on Carbs Linux
      2 ===============================
      3 
      4 To run ZFS under Carbs, you need a kernel that supports modules. I personally
      5 don't use any of the in-kernel modules, but I still have modules enabled for
      6 this purpose. You can see my kernel configuration in this repository as well.
      7 
      8 If you are building ZFS for a different kernel version, specify the kernel
      9 version in the `KERNEL_VERSION` variable. Here is an example:
     10 
     11     KERNEL_VERSION=5.8.9 cpt b zfs
     12 
     13 This will build for the target version, so you don't need to boot that kernel
     14 in order to build the module.
     15 
     16 
     17 Dependencies
     18 ------------
     19 
     20 This package depends on 'libtirpc', but will probably link to more packages
     21 on your system, such as util-linux, libressl, and zlib. Even though I have
     22 tried linking all statically, it doesn't work.
     23 
     24 
     25 Making ZFS datasets available on boot
     26 -------------------------------------
     27 
     28 I personally don't have my root under ZFS, you will need further reading if that
     29 is your goal. I have two init scripts on '/etc/init' for mounting and unmounting
     30 ZFS.
     31 
     32 
     33 /etc/init/zfs.early-boot:
     34 
     35     modprobe zfs
     36     zpool import -a -f
     37     zfs load-key -a
     38     zfs mount -a
     39 
     40 
     41 /etc/init/zfs.pre.shutdown:
     42 
     43     zfs umount -a