New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] Add support for building DKMS ZFS and SPL binaries for Debian/Ubuntu #6044
Comments
|
@jwittlincohen The ZFS build system will produce dkms packages that work on Debian/Ubuntu if the prerequisites are installed. In addition, that distribution family has taken over maintenance and development of packaging officially as Is there something else you wanted? |
|
@Conan-Kudo I just want to be clear that you are talking about building the ZFS and SPL packages found on the ZoL website. The documentation states, "DKMS (rpm-only): Building rpm-based DKMS and user packages can be done as follows. However, be aware that the build system currently does does [sic] support building deb-based DKMS packages." If it is indeed possible to build DKMS packages for Debian/Ubuntu using the sources from http://zfsonlinux.org/, could you provide the appropriate instructions, as the ones here only show the option to build DKMS RPMs? If you are referring to the DKMS packages provided by Debian's repositories, I already know they exist. My goal was to create DKMS binaries of 0.70-rc3 for testing. As of this time neither Ubuntu nor Debian provide 0.7.0 packages in any of their repositories as it is not an official release. |
|
Also note that Ubuntu does not provide up-to-date packages for 16.04 LTS so a documented way of building DKMS packages for it would be welcome. |
|
I checked the Makefile in the ZFS 0.7.0-rc3 source package. All references to DKMS relate to the script rpm-dkms build script. As the name suggests, this only produces RPMs. :) |
|
but how do we build deb for 0.7 ? the 0.7 spl built and installed fine Unpacking zfs-dkms (0.6.5.9-5ubuntu4) over (0.6.5.9-5ubuntu4) ... |
|
@MasterCATZ v0.6.5.9 doesn't support 4.11 kernel, next time please read package description. Build beta 0.7.0 or wait for 0.6.5.10. |
|
There's multiple issues with this issue.
Regarding the issue though, If using an Ubuntu kernel and wanting to use a different zfs/spl, dkms actually is a blocker because it detects an existing zfs/spl and doesn't automatically build out of tree versions and as far as I know there's no way to globally override dkms to --force it to use your own (it checks version number only, and version != version across all debian variants). When I was testing some Ubuntu kernels on Debian I ran into this issue with dkms. You kinda have to do some variant of this; If wanting to use a newer version of zfs, the existing dkms files in from the package repos would likely work but may need some slight modification. This is more of a downstream issue though and I don't believe it belongs here. You could check some of the downstream repos though (like unstable/experimental has 4.11 kernels, so their zfs source repository may have newer versions as well). Likewise for Ubuntu you could check their testing/unstable repos (usually the next distribution release codename). However, this requires advanced apt pinning of packages and repos if you want upgrades to work properly. |
|
Thanks Trucido still, no idea where to find "beta 0.7.0" for Ubuntu |
|
thanks when I last looked that was last updated 162 weeks ago |
|
@MasterCATZ yeah, not sure why it isn't updated daily when it clearly notes that it is updated daily "Native ZFS for Linux daily builds" |
|
W: The repository 'http://ppa.launchpad.net/zfs-native/daily/ubuntu zesty Release' does not have a Release file. looks like I still have to wait for Ubuntu to do the zfs update on their end spl, 0.6.5.9, 4.10.0-22-generic, x86_64: installed downside being I need kernel 4.11 for my AMD ryzen CPU to work I have used alien to convert 0.7 rpm - deb , but does not seem to get zfs working for me still gitclone build attempt with zfs gitclone build of spl seems to work well after some more attempts and git clean -dfx something seems to have worked or kernel 4.11.3 worked? thankfully the pool imported I have only been without it for a bit over a month now pool: ZFSRaidz2 SPL ZFS the only issue now is getting dkms to actually install it Error! Could not locate dkms.conf file. |
|
Just need a debian package now :-/ |
|
I build rpm first and use alien to convert dkms noarch.rpm to deb. That works. |
|
Do running commands like "zpool status" from installs of alien converted rpms of 0.7.x on a debian system still give you errors like this: |
|
Does the RPM --> DEB method install working systemd unit files? When I build the kmod packages for Stretch, I have to manually mount my /home partition because systemd zfs.target service doesn't start. See #6435. |
|
I only converted dkms rpm to deb. Same problem, I have to import zfs by hand after 0.7 upgrade. |
|
This is so annoying. I'm using Kernel |
|
You need to make the change in the spl source mentioned here: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=836578 in the spl debian/dkms: |
* config/deb.am: Enable building DKMS packages for Debian * rpm/generic/zfs-dkms.spec.in: Adjust spec to be Debian-compatible * Condition kernel-devel Req to RPM distros * Adjust the DKMS Req to have a minimum of a version only * Ensure that --rpm_safe_upgrade isn't used on non-RPM distros * config/deb.am: Drop CONFIG_KERNEL and CONFIG_USER guards * Makefile.am: Add pkg-dkms target Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Neal Gompa <ngompa@datto.com> Closes #6044 Closes #6731
* config/deb.am: Enable building DKMS packages for Debian * rpm/generic/zfs-dkms.spec.in: Adjust spec to be Debian-compatible * Condition kernel-devel Req to RPM distros * Adjust the DKMS Req to have a minimum of a version only * Ensure that --rpm_safe_upgrade isn't used on non-RPM distros * config/deb.am: Drop CONFIG_KERNEL and CONFIG_USER guards * Makefile.am: Add pkg-dkms target Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Neal Gompa <ngompa@datto.com> Closes #6044 Closes #6731
* config/deb.am: Enable building DKMS packages for Debian * rpm/generic/zfs-dkms.spec.in: Adjust spec to be Debian-compatible * Condition kernel-devel Req to RPM distros * Adjust the DKMS Req to have a minimum of a version only * Ensure that --rpm_safe_upgrade isn't used on non-RPM distros * config/deb.am: Drop CONFIG_KERNEL and CONFIG_USER guards * Makefile.am: Add pkg-dkms target Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Neal Gompa <ngompa@datto.com> Closes openzfs#6044 Closes openzfs#6731
|
I was able to successfully build and install SPL and ZFS 0.7.3 DKMS packages. DKMS built the kernel modules for both SPL and ZFS on installation. However, something is wrong because when I run It's possible I'm just doing something wrong since the custom build guide was not updated for DKMS on Debian. Here were the steps I took: SPL:
ZFS:
|
|
@jwittlincohen could you try to check what update-initramfs is doing verbosely and also whether you have |
|
Sorry, wrong issue thread :) |
* config/deb.am: Enable building DKMS packages for Debian * rpm/generic/zfs-dkms.spec.in: Adjust spec to be Debian-compatible * Condition kernel-devel Req to RPM distros * Adjust the DKMS Req to have a minimum of a version only * Ensure that --rpm_safe_upgrade isn't used on non-RPM distros * config/deb.am: Drop CONFIG_KERNEL and CONFIG_USER guards * Makefile.am: Add pkg-dkms target Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Neal Gompa <ngompa@datto.com> Closes openzfs#6044 Closes openzfs#6731
* config/deb.am: Enable building DKMS packages for Debian * rpm/generic/zfs-dkms.spec.in: Adjust spec to be Debian-compatible * Condition kernel-devel Req to RPM distros * Adjust the DKMS Req to have a minimum of a version only * Ensure that --rpm_safe_upgrade isn't used on non-RPM distros * config/deb.am: Drop CONFIG_KERNEL and CONFIG_USER guards * Makefile.am: Add pkg-dkms target Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Neal Gompa <ngompa@datto.com> Closes openzfs#6044 Closes openzfs#6731
|
@jwittlincohen I spent a bit of time reading the build scripts, and from what I've gathered, you want to use When I build with |
* config/deb.am: Enable building DKMS packages for Debian * rpm/generic/zfs-dkms.spec.in: Adjust spec to be Debian-compatible * Condition kernel-devel Req to RPM distros * Adjust the DKMS Req to have a minimum of a version only * Ensure that --rpm_safe_upgrade isn't used on non-RPM distros * config/deb.am: Drop CONFIG_KERNEL and CONFIG_USER guards * Makefile.am: Add pkg-dkms target Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Neal Gompa <ngompa@datto.com> Closes openzfs#6044 Closes openzfs#6731
* config/deb.am: Enable building DKMS packages for Debian * rpm/generic/zfs-dkms.spec.in: Adjust spec to be Debian-compatible * Condition kernel-devel Req to RPM distros * Adjust the DKMS Req to have a minimum of a version only * Ensure that --rpm_safe_upgrade isn't used on non-RPM distros * config/deb.am: Drop CONFIG_KERNEL and CONFIG_USER guards * Makefile.am: Add pkg-dkms target Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Neal Gompa <ngompa@datto.com> Closes openzfs#6044 Closes openzfs#6731
Describe the problem you're observing
Feature Request: Currently, the build scripts for ZFS/SPL only allow building kmod packages for Debian and Ubuntu. In contrast, it is possible to build DKMS packges for CentOS/RHEL and Fedora. It would be very useful to have DKMS packages for Debian and Ubuntu so that the ZFS and SPL modules can be automatically rebuilt after a kernel upgrade. This is described here.
Describe how to reproduce the problem
Upgrading the kernel with the kmod package requires rebuilding the ZFS and SPL packages for the new kernel.
The text was updated successfully, but these errors were encountered: