Package Details: zfs-dkms-rc 2.1.0_rc8-1

Git Clone URL: (read-only, click to copy)
Package Base: zfs-dkms-rc
Description: Kernel modules for the Zettabyte File System.
Upstream URL:
Licenses: CDDL
Conflicts: spl, spl-headers, zfs, zfs-headers
Provides: spl, spl-headers, zfs, zfs-headers
Submitter: greyltc
Maintainer: minextu (archzfs-bot)
Last Packager: archzfs-bot
Votes: 2
Popularity: 0.000000
First Submitted: 2017-06-06 12:24 (UTC)
Last Updated: 2021-07-01 12:41 (UTC)

Required by (16)

Sources (1)

Latest Comments

mabod commented on 2020-12-09 07:00 (UTC) (edited on 2020-12-09 07:05 (UTC) by mabod)

@PedroHLC: Here is what I use. This is basically the zfs-dkms-rc and zfs-utils-rc files just sourcing zfs-2.0.0. I did not change maintainer info etc.

The packages depend on each other. So you want to use the -d option with makepkg to compile the packages.

PKGBUILD zfs-dkms:

# Maintainer: Jan Houben <>
# Contributor: Jesus Alvarez <jeezusjr at gmail dot com>
# This PKGBUILD was generated by the archzfs build scripts located at
pkgdesc="Kernel modules for the Zettabyte File System."

depends=("zfs-utils=${pkgver}" "lsb-release" "dkms")
provides=("zfs" "zfs-headers" "spl" "spl-headers")
conflicts=("zfs" "zfs-headers" "spl" "spl-headers")

build() {
    cd "${srcdir}/zfs-${pkgver/_rc*/}"

package() {
    install -d "${dkmsdir}"
    cp -a ${srcdir}/zfs-${pkgver/_rc*/}/. ${dkmsdir}
    cd "${dkmsdir}"
    find . -name ".git*" -print0 | xargs -0 rm -fr --
    scripts/dkms.mkconf -v ${pkgver} -f dkms.conf -n zfs
    chmod g-w,o-w -R .

PKGBUILD zfs-utils:

# Maintainer: Jan Houben <>
# Contributor: Jesus Alvarez <jeezusjr at gmail dot com>
# This PKGBUILD was generated by the archzfs build scripts located at

pkgdesc="Kernel module support files for the Zettabyte File System."
makedepends=("python" "python-setuptools" "python-cffi")
optdepends=("python: pyzfs and extra utilities", "python-cffi: pyzfs")
provides=("zfs-utils" "spl-utils")
conflicts=("zfs-utils" "spl-utils")
backup=('etc/zfs/zed.d/zed.rc' 'etc/default/zfs' 'etc/modules-load.d/zfs.conf' 'etc/sudoers.d/zfs')

build() {
    cd "${srcdir}/zfs-${pkgver/_rc*/}"
    ./configure --prefix=/usr --sysconfdir=/etc --sbindir=/usr/bin --with-mounthelperdir=/usr/bin \
                --libdir=/usr/lib --datadir=/usr/share --includedir=/usr/include \
                --with-udevdir=/usr/lib/udev --libexecdir=/usr/lib \
                --with-config=user --enable-systemd --enable-pyzfs

package() {
    cd "${srcdir}/zfs-${pkgver/_rc*/}"
    make DESTDIR="${pkgdir}" install
    # Remove uneeded files
    rm -r "${pkgdir}"/etc/init.d
    rm -r "${pkgdir}"/usr/share/initramfs-tools
    rm -r "${pkgdir}"/usr/lib/modules-load.d
    # Autoload the zfs module at boot
    mkdir -p "${pkgdir}/etc/modules-load.d"
    printf "%s\n" "zfs" > "${pkgdir}/etc/modules-load.d/zfs.conf"
    # fix permissions
    chmod 750 ${pkgdir}/etc/sudoers.d
    chmod 440 ${pkgdir}/etc/sudoers.d/zfs
    # Install the support files
    install -D -m644 "${srcdir}"/zfs-utils.initcpio.hook "${pkgdir}"/usr/lib/initcpio/hooks/zfs
    install -D -m644 "${srcdir}"/zfs-utils.initcpio.install "${pkgdir}"/usr/lib/initcpio/install/zfs
    install -D -m644 "${srcdir}"/zfs-utils.initcpio.zfsencryptssh.install "${pkgdir}"/usr/lib/initcpio/install/zfsencryptssh
    install -D -m644 contrib/bash_completion.d/zfs "${pkgdir}"/usr/share/bash-completion/completions/zfs

PedroHLC commented on 2020-12-09 02:50 (UTC)

Considering how the zfs-dkms didn't update to 2.0.0 yet. Did someone try updating this one instead? If someone did, could it share the modified PKGBUILD?

mabod commented on 2020-11-26 16:11 (UTC)

@minextu. I understand your point. I did my own patching. rc7 already contains the patch.

minextu commented on 2020-11-26 15:14 (UTC) (edited on 2020-11-26 15:14 (UTC) by minextu)

@mabod Just updated to rc7 which should include the fix. I generally don't like to include patches in rc releases as they should be used for testing on a common codebase

mabod commented on 2020-11-14 18:24 (UTC) (edited on 2020-11-14 18:25 (UTC) by mabod)

Can you include - cherry pick - PR #11201 until it is in the offical code? The PR prevents a complete hang of the system when working with .zfs/snapshot directories. See issue The PR is:

minextu commented on 2019-05-24 16:17 (UTC)

@freswa dracut modules are now included in all archzfs packages (except for zfs-rc since 0.8 has been released)

freswa commented on 2019-05-21 17:01 (UTC)

Since Arch is considering dracut as an replacement for mkinitcpio, could you please include the dracut directory? See also


greyltc commented on 2019-05-14 17:31 (UTC)

I don't think that's a packaging issue. Try raising a bug upstream.

C_Schmidpeter commented on 2019-05-13 10:02 (UTC)

dkms install with rc5 results in following errors:

(1/9) Install DKMS modules ==> dkms install zfs/0.8.0_rc5 -k 5.0.13-arch1-1-ARCH sed: can't read conftest.c: No such file or directory /var/lib/dkms/zfs/0.8.0_rc5/build/configure: line 25627: conftest.c: No such file or directory /var/lib/dkms/zfs/0.8.0_rc5/build/configure: line 25652: conftest.h: No such file or directory [...]

zer0def commented on 2019-05-02 00:16 (UTC)

DKMS config makes use of lsb-release, so might be worthwhile to add it to runtime deps for completeness.

nicoulaj commented on 2019-03-05 20:06 (UTC)

Looks like it does not build on linux 5.0 because of this:, will have to wait for a new release or downgrade kernel...

greyltc commented on 2018-11-27 17:44 (UTC)

Why did the checksum change?

semidog commented on 2017-07-30 08:31 (UTC)

The SHA256sum for the targz needs to be updated in the PKGBUILD. Please update it to 404528827a0ee70d218c9ca0588e2cc8cde4d46183025459648ed875bfa7ab8c