]> git.proxmox.com Git - mirror_zfs-debian.git/commit
Add debconf helpers: Ask the user before building on a 32 bit kernel
authorCarlos Alberto Lopez Perez <clopez@igalia.com>
Wed, 3 Apr 2013 00:22:55 +0000 (02:22 +0200)
committerCarlos Alberto Lopez Perez <clopez@igalia.com>
Wed, 3 Apr 2013 00:22:55 +0000 (02:22 +0200)
commitda1f1cc8de61d21768cedca2b7fc8ee54260f3f0
treed675cc19cb84005bcf430c9e9f76105c7526607d
parent05c5f9012051195b875462f8b2cb54168dc71820
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.
debian/zfs-dkms.config [new file with mode: 0644]
debian/zfs-dkms.postinst
debian/zfs-dkms.templates [new file with mode: 0644]