1 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= <f.gruenbichler@proxmox.com>
2 Date: Wed, 12 Oct 2016 11:32:17 +0200
3 Subject: [PATCH] add zfsutils.preinst/postinst for wheezy upgrade path
6 debian/zfsutils-linux.postinst | 20 ++++++++++++++++++++
7 debian/zfsutils-linux.preinst | 17 +++++++++++++++++
8 2 files changed, 37 insertions(+)
9 create mode 100755 debian/zfsutils-linux.postinst
10 create mode 100755 debian/zfsutils-linux.preinst
12 diff --git a/debian/zfsutils-linux.postinst b/debian/zfsutils-linux.postinst
14 index 0000000..7d57919
16 +++ b/debian/zfsutils-linux.postinst
22 +# Source debconf library
23 +. /usr/share/debconf/confmodule
25 +if dpkg-maintscript-helper supports rm_conffile 2>/dev/null
27 + dpkg-maintscript-helper rm_conffile /etc/default/zfsload -- "$@"
28 + dpkg-maintscript-helper rm_conffile /etc/init.d/zfs -- "$@"
29 + dpkg-maintscript-helper rm_conffile /etc/init.d/zed -- "$@"
30 + dpkg-maintscript-helper rm_conffile /etc/init.d/zfs-zed -- "$@"
31 + dpkg-maintscript-helper rm_conffile /etc/init.d/zfs-mount -- "$@"
32 + dpkg-maintscript-helper rm_conffile /etc/init.d/zfs-share -- "$@"
33 + dpkg-maintscript-helper rm_conffile /etc/init.d/zfs-import -- "$@"
38 diff --git a/debian/zfsutils-linux.preinst b/debian/zfsutils-linux.preinst
40 index 0000000..9338a7c
42 +++ b/debian/zfsutils-linux.preinst
48 +if dpkg-maintscript-helper supports rm_conffile 2>/dev/null
50 + dpkg-maintscript-helper rm_conffile /etc/default/zfsload -- "$@"
51 + dpkg-maintscript-helper rm_conffile /etc/init.d/zfs -- "$@"
52 + dpkg-maintscript-helper rm_conffile /etc/init.d/zed -- "$@"
53 + dpkg-maintscript-helper rm_conffile /etc/init.d/zfs-zed -- "$@"
54 + dpkg-maintscript-helper rm_conffile /etc/init.d/zfs-mount -- "$@"
55 + dpkg-maintscript-helper rm_conffile /etc/init.d/zfs-share -- "$@"
56 + dpkg-maintscript-helper rm_conffile /etc/init.d/zfs-import -- "$@"