linux: implement filesystem-side clone ioctls
[zfs.git] / contrib / debian / openzfs-zfs-dkms.config
blobad7e160a2b114d97323571fe7967bd92d0500873
1 #!/bin/sh
3 set -e
5 # Source debconf library
6 . /usr/share/debconf/confmodule
8 db_input critical zfs-dkms/note-incompatible-licenses || true
9 db_go
11 kernelbits=unknown
12 if [ -r /proc/kallsyms ]; then
13 addrlen=$(head -1 /proc/kallsyms|awk '{print $1}'|wc -c)
14 if [ $addrlen = 17 ]; then
15 kernelbits=64
16 elif [ $addrlen = 9 ]; then
17 kernelbits=32
21 if [ $kernelbits != 64 ]; then
22 if [ $kernelbits = 32 ]; then
23 db_input critical zfs-dkms/stop-build-for-32bit-kernel || true
24 db_go || true
25 else
26 db_input critical zfs-dkms/stop-build-for-unknown-kernel || true
27 db_go || true
31 #DEBHELPER#