Package Details: zfs-linux 2.3.1_6.13.8.arch1.1-1

Git Clone URL: https://aur.archlinux.org/zfs-linux.git (read-only, click to copy)
Package Base: zfs-linux
Description: Kernel modules for the Zettabyte File System.
Upstream URL: https://openzfs.org/
Keywords: kernel linux openzfs zfs
Licenses: CDDL
Groups: archzfs-linux
Conflicts: spl-dkms, spl-dkms-git, spl-linux, zfs-dkms, zfs-dkms-git, zfs-dkms-rc, zfs-linux-git, zfs-linux-rc
Provides: spl, zfs
Replaces: spl-linux
Submitter: demizer
Maintainer: lightdot
Last Packager: lightdot
Votes: 275
Popularity: 0.94
First Submitted: 2016-04-21 08:45 (UTC)
Last Updated: 2025-03-25 23:55 (UTC)

Required by (19)

Sources (1)

Pinned Comments

lightdot commented on 2025-02-04 21:19 (UTC) (edited on 2025-03-29 20:47 (UTC) by lightdot)

This package will be kept in sync with the openzfs latest stable release and the kernels officially supported by it.

For the supported kernel versions, refer to the respective openzfs release notes (LINK).

E.g. openzfs 2.3.1 supports kernel versions 4.18 - 6.13. When kernel 6.14 is released for Arch, zfs-linux will not be updated until the openzfs project announces that it's compatible. This will most likely happen with the next openzfs release.

The kernel compatibility of the upcoming openzfs release can be seen in their META file (LINK).

For those wishing to use openzfs with unsupported kernels, do note that this could lead to serious issues, including data loss, even though such a zfs-linux package might build and install cleanly. Have reliable backups and use such a package at your peril.

Please do not mark this package as out of date without checking the kernel compatibility first. Thank you!

Latest Comments

« First ‹ Previous 1 .. 6 7 8 9 10 11 12 13 14 15 16 .. 79 Next › Last »

dmp1ce commented on 2019-05-04 23:49 (UTC)

@Ruli that is typical with this package. The reason is because of a dependency on a specific linux version. I don't know the reason for the specific linux version but I assume it is for a good reason. I think there has been some work on automating the new releases when new linux kernels comes out but I'm not sure about the details.

Someone please correct me where I am wrong.

Ruli commented on 2019-05-04 23:38 (UTC)

Hi, when I tried to do pacman -Syu today, I got the following message:

resolving dependencies... warning: cannot resolve "linux=5.0.10.arch1-1", a dependency of "spl-linux" warning: cannot resolve "linux=5.0.10.arch1-1", a dependency of "spl-linux-headers" warning: cannot resolve "linux=5.0.10.arch1-1", a dependency of "spl-linux" warning: cannot resolve "linux=5.0.10.arch1-1", a dependency of "zfs-linux" warning: cannot resolve "linux=5.0.10.arch1-1", a dependency of "spl-linux" warning: cannot resolve "linux=5.0.10.arch1-1", a dependency of "zfs-linux-headers" :: The following packages cannot be upgraded due to unresolvable dependencies: spl-linux spl-linux-headers zfs-linux zfs-linux-headers

Is anyone else seeing this as well? Thanks in advance!

ozkan.kirik commented on 2018-11-10 16:45 (UTC)

Dependency zfs-utils-common is missing. So package couldn't be compiled

minextu commented on 2018-07-21 04:04 (UTC) (edited on 2018-07-22 07:34 (UTC) by minextu)

Hi everyone, as you might know: I'm the new Maintainer of archzfs (https://github.com/archzfs/archzfs/issues/262). As soon as I get access to the archzfs.com domain, I will update all packages. I've implemented an automated build system to help update packages faster in the future. The new gpg key for the repo is F75D9D76 ArchZFS Bot <buildbot@archzfs.com>. If you are using the archzfs repo, you will need to add this key to pacman's trusted key list.

pacman-key -r F75D9D76
pacman-key --lsign-key F75D9D76

Edit: Packages are now up to date on archzfs.com. The temporary domain is no longer needed

whitesnow commented on 2018-07-19 16:41 (UTC)

I'm not the person, to answer that. But what I read here: https://github.com/archzfs/archzfs/issues/260

sounds very positive. There is even a temporary domain set up now. Read yourself there.

sonix07 commented on 2018-07-19 14:02 (UTC)

I'm aware of the maintainer change, but will this package get an update in the near future or is the dkms version the way to go now?

jgerecke commented on 2018-06-02 17:55 (UTC) (edited on 2018-06-02 18:12 (UTC) by jgerecke)

May I suggest modifying the PKGBUILD and zfs.install script to make it both easier to update and easier to verify that new updates (e.g. through aurman) aren't malicious? The following patch puts the ZFS and kernel versions into variables that we reuse rather than hardcoding strings in a half-dozen places. It also has the install script determine the kernel version automagically from the version string passed in by pacman. Similar modifications could/should be made to other packages (e.g. spl).

diff --git a/PKGBUILD b/PKGBUILD
index 6f1a8a3..5369240 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -17,24 +17,26 @@
 pkgbase="zfs-linux"
 pkgname=("zfs-linux" "zfs-linux-headers")

-pkgver=0.7.9.4.16.11.1
+zfsver=0.7.9
+kernelver=4.16.11-1
+pkgver="${zfsver}.$(echo ${kernelver} | tr '-' '.')"
 pkgrel=1
-makedepends=("linux-headers=4.16.11-1" "spl-linux-headers")
+makedepends=("linux-headers=${kernelver}" "spl-linux-headers")
 arch=("x86_64")
 url="http://zfsonlinux.org/"
-source=("https://github.com/zfsonlinux/zfs/releases/download/zfs-0.7.9/zfs-0.7.9.tar.gz")
+source=("https://github.com/zfsonlinux/zfs/releases/download/zfs-${zfsver}/zfs-${zfsver}.tar.gz")
 sha256sums=("f50ca2441c6abde4fe6b9f54d5583a45813031d6bb72b0011b00fc2683cd9f7a")
 license=("CDDL")
-depends=("kmod" "spl-linux" "zfs-utils-common=0.7.9" "linux=4.16.11-1")
+depends=("kmod" "spl-linux" "zfs-utils-common=${zfsver}" "linux=${kernelver}")

 build() {
-    cd "${srcdir}/zfs-0.7.9"
+    cd "${srcdir}/zfs-${zfsver}"
     ./autogen.sh
     ./configure --prefix=/usr --sysconfdir=/etc --sbindir=/usr/bin --libdir=/usr/lib \
                 --datadir=/usr/share --includedir=/usr/include --with-udevdir=/lib/udev \
-                --libexecdir=/usr/lib/zfs-0.7.9 --with-config=kernel \
-                --with-linux=/usr/lib/modules/4.16.11-1-ARCH/build \
-                --with-linux-obj=/usr/lib/modules/4.16.11-1-ARCH/build
+                --libexecdir=/usr/lib/zfs-${zfsver} --with-config=kernel \
+                --with-linux=/usr/lib/modules/${kernelver}-ARCH/build \
+                --with-linux-obj=/usr/lib/modules/${kernelver}-ARCH/build
     make
 }

@@ -45,7 +47,7 @@ package_zfs-linux() {
     groups=("archzfs-linux")
     conflicts=('zfs-linux-git')
     replaces=("zfs-git")
-    cd "${srcdir}/zfs-0.7.9"
+    cd "${srcdir}/zfs-${zfsver}"
     make DESTDIR="${pkgdir}" install
     cp -r "${pkgdir}"/{lib,usr}
     rm -r "${pkgdir}"/lib
@@ -56,9 +58,9 @@ package_zfs-linux() {
 package_zfs-linux-headers() {
     pkgdesc="Kernel headers for the Zettabyte File System."
     conflicts=('zfs-archiso-linux-headers' 'zfs-archiso-linux-git-headers' 'zfs-linux-hardened-headers' 'zfs-linux-hardened-git-headers' 'zfs-linux-lts-headers' 'zfs-linux-lts-git-headers'  'zfs-linux-git-headers' 'zfs-linux-vfio-headers' 'zfs-linux-vfio-git-headers' 'zfs-linux-zen-headers' 'zfs-linux-zen-git-headers' )
-    cd "${srcdir}/zfs-0.7.9"
+    cd "${srcdir}/zfs-${zfsver}"
     make DESTDIR="${pkgdir}" install
     rm -r "${pkgdir}/lib"
     # Remove reference to ${srcdir}
-    sed -i "s+${srcdir}++" ${pkgdir}/usr/src/zfs-*/4.16.11-1-ARCH/Module.symvers
+    sed -i "s+${srcdir}++" ${pkgdir}/usr/src/zfs-*/${kernelver}-ARCH/Module.symvers
 }
diff --git a/zfs.install b/zfs.install
index eda162b..cc32a25 100644
--- a/zfs.install
+++ b/zfs.install
@@ -1,20 +1,21 @@
 post_install() {
-    check_initramfs
+    check_initramfs "$1"
 }

 post_remove() {
-    check_initramfs 'remove'
+    check_initramfs "$1" 'remove'
 }

 post_upgrade() {
-    check_initramfs
+    check_initramfs "$1"
 }

 check_initramfs() {
+    KERNELVER=$(echo "$1" | rev | cut -d'-' -f2 | cut -d'.' -f1-4 | sed 's/\./-/' | rev)
     echo ">>> Updating ZFS module dependencies"
-    depmod -a 4.16.11-1-ARCH
+    depmod -a ${KERNELVER}-ARCH
     MK_CONF=$(grep -v '#' /etc/mkinitcpio.conf | grep zfs >/dev/null; echo $?);
-    if [[ ${MK_CONF} == '0' && $1 == 'remove' ]]; then
+    if [[ ${MK_CONF} == '0' && $2 == 'remove' ]]; then
         echo '>>> The ZFS packages have been removed, but "zfs" remains in the "hooks"'
         echo '>>> list in mkinitcpio.conf! You will need to remove "zfs" from the '
         echo '>>> "hooks" list and then regenerate the initial ramdisk.'

minextu commented on 2018-05-01 18:04 (UTC)

@robguinness You need to set the kernel version on multiply places (See https://github.com/archzfs-test-pkgbuilds/zfs-linux/commit/290ae82ba3efee976096129928641459a8bc6dbf)

robguinness commented on 2018-04-29 17:32 (UTC)

I am new to AUR. I am running kernel 4.16.5-1-ARCH, but this package requires 4.16.4-1. Is fixing this package for 4.16.5-1 as simple changing the version numbers in PKGBUILD, or does something else in the source files need to be changed, too?