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.
* 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.
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: