4 # Source debconf library (see dh_installdebconf(1) and #106070 #626312)
5 .
/usr
/share
/debconf
/confmodule
7 db_input high zfs-dkms
/note-incompatible-licenses || true
10 if [ -r /proc
/kallsyms
]; then
11 addrlen
=$
(head -1 /proc
/kallsyms|
awk '{print $1}'|
wc -c)
12 if [ $addrlen = 17 ]; then
14 elif [ $addrlen = 9 ]; then
19 if [ $kernelbits != 64 ]; then
20 if [ $kernelbits = 32 ]; then
21 db_get zfs-dkms
/stop-build-for-32bit-kernel
22 if [ "$RET" = "true" ]; then
23 echo "Ok, aborting, since ZFS is not designed for 32-bit kernels." 1>&2
24 # Exit 0: Tell dpkg that we finished OK but stop here.
25 # (don't build the module)
28 echo "WARNING: Building ZFS module on a 32-bit kernel." 1>&2
31 db_get zfs-dkms
/stop-build-for-unknown-kernel
32 if [ "$RET" = "true" ]; then
33 echo "Ok, aborting, since ZFS is not designed for 32-bit kernels." 1>&2
34 # Exit 0: (same that above)
37 echo "WARNING: Building ZFS module on an unknown kernel." 1>&2
42 # Here the module gets built (automatically handled by dh_dkms)
49 if [ -x /usr
/share
/update-notifier
/notify-reboot-required
]; then
50 /usr
/share
/update-notifier
/notify-reboot-required