Commit Graph

5 Commits

Author SHA1 Message Date
Aron Xu
83754772d2 Correct parameter
prerm will not be called with `purge` parameter.
2013-08-03 05:05:24 +08:00
Aron Xu
38c8347227 Ensure /etc/zfs/ is present on the system
If /etc/zfs/ isn't present or isn't a directory, zpool.cache
won't be created when importing a pool. Also we need to make
sure when users purges the package zpool.cache is removed as
well.

zpool.cache does not need to be kept on user's system when
the package is purged since information in it is only some
status about the host and mounts. The only direct harm of
not having it is that users need to import the pool by hand
and specify -f parameter.
2013-08-03 04:38:23 +08:00
Carlos Alberto Lopez Perez
5c50db0ca1 Delete void zfs-dkms.prerm
* There is not need to have empty skeleton {pre,post}{inst,rm} files
 * debhelper will create this at build time automatically when needed

 * debhelper(7)

   Automatic generation of debian install scripts:

       Some debhelper commands will automatically generate parts of debian
       maintainer scripts. If you want these automatically generated things
       included in your existing debian maintainer scripts, then you need to
       add "#DEBHELPER#" to your scripts, in the place the code should be
       added.  "#DEBHELPER#" will be replaced by any auto-generated code when
       you run dh_installdeb.

       If a script does not exist at all and debhelper needs to add something
       to it, then debhelper will create the complete script.
2013-02-28 22:48:53 +01:00
Darik Horn
fbbac4d0b1 Add -e switch to the zfs-dkms.prerm whackbang.
Resolve this lintian warning:

W: zfs-dkms: maintainer-script-ignores-errors prerm
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:37:14 -05:00
Darik Horn
7e4739a203 Initial master branch for git-buildpackage. 2011-02-22 11:13:25 -06:00