Commit Graph

12 Commits

Author SHA1 Message Date
Antonio Russo
521cc13335 Handle /proc/kallsym obfuscation (Closes: #891936) 2018-05-16 21:43:59 +08:00
Aron Xu
4931cf6f4e Make the debconf note visible 2015-11-06 23:43:20 +08:00
Aron Xu
4458d61441 Raise to high priority for debconf note 2015-11-01 22:17:43 +08:00
Aron Xu
4c8f522150 Add warning about incompatibilities of the licenses 2015-11-01 14:13:01 +08:00
Carlos Alberto Lopez Perez
da1f1cc8de Add debconf helpers: Ask the user before building on a 32 bit kernel
* Detect at install time the kernel the user is running

   * If a 64-bit kernel is detected skip any question and just build
     the ZFS kernel module.

   * If a 32-bit kernel is detected, then the user is warned (via debconf)
     about that. And the user is asked to stop the build (the default
     is to stop the build). If the user selects to stop the build then
     we exit with status 0 on postinst before building the module so
     the package gets as installed correctly on the dpkg database but
     the module is not built.

   * If we can't detect if the kernel is 32 or 64 bit we tell the user that
     we couldn't detect that and we tell him that he shouldn't continue
     building ZFS on a 32-bit kernel.
     We also ask him to stop the build and we proceed like in the previous
     case.

  * If the user asks by mistake "no" to build the kernel and later he changes
    his mind and wants to build it, he just needs to reconfigure the package:
    dpkg-reconfigure zfs-dkms

 * TODO: Add translations for the debhelper templates.
2013-04-03 02:22:55 +02:00
Carlos Alberto Lopez Perez
05c5f90120 Call notify-reboot-required after the module was built
* The compilation of the module happens inside the #DEBHELPER# block
   (automatically handled by dh_dkms). So call notify-reboot-required
   after it was built.
2013-04-03 00:03:56 +02:00
Carlos Alberto Lopez Perez
9d6cc2bbb5 Fix lintian warning maintainer-script-without-set-e 2013-03-16 21:51:43 +01:00
Carlos Alberto Lopez Perez
fbc1bfefae Prevent fatal error on zfs-dkms.postinst when update-notifier-common is not installed
* The postinst script is ran with "set -e" which means that it will abort on any
   command returning non-zero and therefore the package will fail to install.

   * false && anything => false
     * Ex:
            clopez ~ $ false && true
            clopez ~ $ echo $?
            1

  * The check should be done with if-then-fi
     * Ex:
            clopez ~ $ if false; then anything; fi
            clopez ~ $ echo $?
            0
2013-02-20 23:24:49 +01:00
Darik Horn
53d983ddbb Reorder zfs-dkms.postinst for dh_dkms glitch.
The #DEBHELPER# macro produces code for DKMS that can cause sporadic
failures if it is not run last. Identical code is executed differently
depending on whether it is before or after the template expansion.

Closes: zfsonlinux/zfs#629
2012-04-02 22:53:59 -05:00
Darik Horn
ab50055e7a Invoke notify-reboot-required for upgrades.
Call `/usr/share/update-notifier/notify-reboot-required` in the
zfs-dkms postinst script to advise the system that kernel module
upgrades are activated by a reboot.

Closes: dajhorn/pkg-zfs#25
2012-03-30 18:59:04 -05:00
Darik Horn
4fb71286da Add -e switch to the zfs-dkms.postinst whackbang.
Resolve this lintian warning:

W: zfs-dkms: maintainer-script-ignores-errors postinst
N:
N:    The maintainer script doesn't seem to set the -e flag which ensures that
N:    the script's execution is aborted when any executed command fails.
N:
N:    Refer to Debian Policy Manual section 10.4 (Scripts) for details.
N:
N:    Severity: normal, Certainty: certain
N:
2011-05-05 19:32:50 -05:00
Darik Horn
7e4739a203 Initial master branch for git-buildpackage. 2011-02-22 11:13:25 -06:00