@graysky, changing the dependencies to linux-ck doesn't seem to help. I can compile and install all the relevant packages manually (that is, without an AUR helper), but `modprobe zfs` leads to "modprobe: FATAL: Module zfs not found."
I can find the ko inside /usr/lib/modules/3.12.6-1-ck/extra/zfs/zfs.ko however...
I'll give your script a try, thanks.
Search Criteria
Package Details: zfs-linux 2.3.1_6.13.8.arch1.1-1
Package Actions
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: | 1.09 |
First Submitted: | 2016-04-21 08:45 (UTC) |
Last Updated: | 2025-03-25 23:55 (UTC) |
Dependencies (4)
- kmod (kmod-gitAUR)
- linux
- zfs-utilsAUR (zfs-utils-gitAUR, zfs-linux-gitAUR, zfs-utils-staging-gitAUR)
- linux-headers (make)
Required by (19)
- cockpit-zfs-manager (requires zfs)
- prepare-lastboot (requires zfs)
- python-pyzfscmds (requires zfs)
- targetd (optional)
- targetd-git (optional)
- zbectl-git (requires zfs)
- zectl (requires zfs)
- zectl-git (requires zfs)
- zedenv (requires zfs)
- zedenv-git (requires zfs)
- zedenv-grub (requires zfs)
- zfs-auto-snapshot (requires zfs)
- zfs-auto-snapshot-git (requires zfs)
- zfsbootmenu (requires zfs)
- zfsbootmenu-efi-bin (requires zfs)
- znapzend (requires zfs)
- znapzupport (requires zfs)
- zsnapd (requires zfs)
- zxfer (requires zfs)
Sources (1)
cabrey commented on 2014-01-05 21:23 (UTC)
graysky commented on 2014-01-03 19:59 (UTC)
You can just modify the PKGBUILDs of the zfs packages to require "linux-ck=3.xx.y" and build them on that machine. I wrote a little script that allows me to build the packages using clean-chroot-manager (available in the AUR). Note that you still will need to modify the PKGBUILDs for your alternative kernel.
Here is my build script if you are interested. Note that the last line sends the built packages to my ZFS server where it is setup to read a custom repo from there. This allows for transparent upgrades. You can comment it out if you don't do something similar.
#!/bin/bash
#
# ZFS Builder by graysky
#
# define the temp space for building here
WORK=/scratch
# create this dir and chown it to your user
# this is the local repo which will store your zfs packages
REPO=/scratch/null
# Add the following entry to /etc/pacman.conf for the local repo
#[chroot_local]
#SigLevel = Optional TrustAll
#Server = file:///path/to/localrepo/defined/above
for i in rsync cower ccm; do
command -v $i >/dev/null 2>&1 || {
echo "I require $i but it's not installed. Aborting." >&2
exit 1; }
done
[[ -f ~/.config/clean-chroot-manager.conf ]] &&
. ~/.config/clean-chroot-manager.conf || exit 1
[[ ! -d "$REPO" ]] && mkdir $REPO
[[ ! -d "$WORK" ]] &&
echo "Make a work directory: $WORK" && exit 1
cd "$WORK"
for i in spl-utils spl zfs-utils zfs; do
[[ -d $i ]] && rm -rf $i
cower -d $i
done
rsync -auvxP $CHROOTPATH64/root/repo/ "$REPO"
rsync -auvxP --delete-after -e 'ssh -c arcfour128' "$REPO/" facade@mars:/var/repo/
demizer commented on 2014-01-03 18:57 (UTC)
@cabrey, I would be willing to include any changes made to the PKGBUILD that support these kernels. I'm sorry, but I just don't have the time to do it myself.
I know graysky is the maintainer of the linux-ck kernels and I believe I once saw a script he wrote for building the archzfs packages for the linux-ck kernels. I can't seem to find it now though.
cabrey commented on 2014-01-03 15:29 (UTC)
Any chance you can modify the PKGBUILD to support alternative kernels (such as linux-ck-*)?
demizer commented on 2013-12-14 06:00 (UTC)
The current kernel version is 3.12.4, but 3.12.5 is in testing so I want to wait until that version comes out so I don't have to update back to back. Should be in the next day or two.
demizer commented on 2013-11-15 05:16 (UTC)
Okay everyone the packages are updated. Sorry it took so long, had to pull in some patches from upstream to make it work with 3.12.
thunderforce commented on 2013-10-16 21:51 (UTC)
@demizer
Thanks for being really responsive even though you have a life :)
Great work!
Achterin commented on 2013-10-15 10:02 (UTC)
@demizer
thanks for your answer. don't stress yourself and take your time.
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!