cetrafs
How-to guideTask-oriented

Install with DKMS

Register the cetrafs module with DKMS directly, without building Debian packages, so it rebuilds on every kernel upgrade.

Use this when you want DKMS to rebuild the module automatically on non-Debian systems, or without building packages. On Debian and Proxmox VE, the Debian packages do the same thing and are easier to manage.

Prerequisites

  • dkms, a compiler, and headers for the running kernel.
  • The cetrafs source tree. DKMS needs kmod/, include/ and dkms.conf: the module builds in kmod/ and includes the shared format header from ../include.

Register, build, install

Use the version from dkms.conf (PACKAGE_VERSION), currently 0.10.6:

VER=0.10.6
sudo cp -r . /usr/src/cetrafs-$VER        # run from the top of the source tree
sudo dkms add     -m cetrafs -v $VER
sudo dkms build   -m cetrafs -v $VER
sudo dkms install -m cetrafs -v $VER

Then install the userspace tools:

make userspace
sudo install -m 0755 userspace/mkfs.cetra userspace/fsck.cetra userspace/defrag.cetra userspace/growfs.cetra /usr/local/sbin/

DKMS builds the module only for kernels 7.0 to 7.3 (BUILD_EXCLUSIVE_KERNEL_MIN and _MAX in dkms.conf) and skips any other. Pin the running kernel, and move the pin only once dkms status lists cetrafs for the new one.

The DKMS build is a release build: the module refuses every test-only parameter.

Verify

dkms status cetrafs
sudo mount -t cetrafs <dev> <mnt>     # loads the module automatically through the fs-cetrafs alias

If the module is refused with Key was rejected by service, Secure Boot is on and the DKMS signing key isn’t enrolled: see Load the module with Secure Boot.

Distribute a source tarball

To install the same module on other machines without copying the source tree:

sudo dkms mktarball -m cetrafs -v $VER --source-only
# on the target machine:
sudo dkms ldtarball /path/to/cetrafs-$VER-source-only.dkms.tar.gz
sudo dkms install -m cetrafs -v $VER
Note

Keep the userspace tools and the kernel module at the same build. An older fsck.cetra run against a volume from a newer module can misread the format and report corruption that isn’t there.

Last updated