Commit Graph

12 Commits

Author SHA1 Message Date
Antonio Russo
effbedcda6 Use dkms.mkconf to produce dkms.conf
Signed-off-by: Antonio Russo <antonio.e.russo@gmail.com>
2018-10-26 12:38:44 +00:00
Mo Zhou
ac54562489 Support Devuan in dkms script. (Closes: #900089)
Thanks to Chris Dos <chris@chrisdos.com>
Gbp-Dch: Full
2018-10-26 05:55:43 +00:00
Fabian Grünbichler
7a4ffc0f43 dkms: build icp module as well 2017-10-31 18:26:17 +08:00
Carlos Alberto Lopez Perez
fa610acfe6 Add --with-spl-timeout=600 to the configure options when building the module with DKMS
This will make the configure script wait up to 600 seconds for the SPL
  config and symver files to be available.

  This is needed when upgrading the kernel version, because DKMS will start
  the build for SPL and ZFS in parallel. And ZFS to be correctly built needs
  the symvers of SPL. So ZFS can't start building until SPL has finished.

  The proper fix would be implementing dependencies on DKMS. But in the
  meanwhile this will do the trick.
2013-04-27 20:54:24 +02:00
Darik Horn
02e5d50834 Normalize dkms.conf bash syntax. 2012-12-16 13:10:15 -06:00
Darik Horn
70888bdce1 Support unstripped DKMS modules.
Add three new `/etc/default/zfs` options:

* `ZFS_DKMS_ENABLE_DEBUG`, which appends `--enable-debug` to the dkms
configuration line.

* `ZFS_DKMS_ENABLE_DEBUG_DMU_TX`, which appends `--enable-debug-dmu-tx`
to the dkms configuration line.

* `ZFS_DKMS_DISABLE_STRIP`, which keeps ko debugging symbols intact.

This kind of true-false toggle is safer than something more extensible
like a passthrough variable because typos in the configuration file
happen frequently and many package managers mask the resulting error.

The natural direction of the STRIP option is reversed to preserve
current behavior for implied defaults.

Closes: zfsonlinux/zfs#1143 for pkg-zfs.
2012-12-16 13:10:13 -06:00
Darik Horn
b08e6b3c15 Add dkms build dependency on spl.
Set `BUILD_DEPENDS[0]="spl"` in the `dkms.conf` file. This is an
experimental directive that is not implemented in DKMS upstream.

Closes: dajhorn/pkg-zfs#44
2012-10-28 23:03:10 -05:00
Darik Horn
2ef39ea316 Add dkms kernel source exception for Proxmox 2.0
Proxmox 2.0 identifies itself as Debian, but provides a non-Debian
kernel package. Accomodate the configuration difference in the
dkms.conf file.

Closes: zfsonlinux/zfs#630
2012-04-09 09:48:52 -05:00
Darik Horn
84cea15a33 Change POST_INSTALL to POST_BUILD in dkms.conf
Install zfs_config.h and Module.symvers earlier so that they can be
used by consumers before the zfs module is activated by dkms.

See also dajhorn/pkg-spl@a68ebb5f24.
2012-02-25 12:10:04 -06:00
Darik Horn
b2260a0c87 FHS conformance and DKMS multiarch, ZFS interface.
Improve FHS conformance by installing intermediary build products --
currently the zfs_config.h and Module.symvers files -- into the
/var/lib/dkms area instead of /usr/src.

This has the beneficial side-effect of enabling DKMS multiarch
support for ZFS because the autoconf templates and `make install`
rules are not aware of the target architecture.

Mitigates: zfsonlinux/zfs#511
2012-01-14 00:48:07 -06:00
Darik Horn
3bf9d46ad7 Automatically set REMAKE_INITRD in the dkms.conf
If the runpart provided by either of the zfs-dracut or zfs-initramfs
packages exists, then set REMAKE_INITRD='yes' in the dkms.conf file
to ensure that current kernel modules are ready for starting the
system from a native ZFS root.

Recent DKMS releases directly source the dkms.conf file, so any such
variable can be set using a shell command substitution.
2011-09-11 01:20:47 -05:00
Darik Horn
1291f65c4f Force the dkms.conf file into the zfs-dkms package.
Rename the debian/dkms file to debian/zfs-dkms.dkms so that
the dkms.conf file is included in the zfs-dkms package.

The dh_dkms debhelper put the dkms.conf file into the
libavl0 package after the library decomposition, which
caused upgrade errors.
2011-03-31 10:54:06 -05:00