]> git.proxmox.com Git - zfsonlinux.git/blob - zfs-patches/add-zfsutils-preinst-postinst.patch
switch pkg source to Debian Jessie
[zfsonlinux.git] / zfs-patches / add-zfsutils-preinst-postinst.patch
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
4
5 ---
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
11
12 diff --git a/debian/zfsutils-linux.postinst b/debian/zfsutils-linux.postinst
13 new file mode 100755
14 index 0000000..7d57919
15 --- /dev/null
16 +++ b/debian/zfsutils-linux.postinst
17 @@ -0,0 +1,20 @@
18 +#!/bin/sh
19 +
20 +set -e
21 +
22 +# Source debconf library
23 +. /usr/share/debconf/confmodule
24 +
25 +if dpkg-maintscript-helper supports rm_conffile 2>/dev/null
26 +then
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 -- "$@"
34 +fi
35 +
36 +#DEBHELPER#
37 +
38 diff --git a/debian/zfsutils-linux.preinst b/debian/zfsutils-linux.preinst
39 new file mode 100755
40 index 0000000..9338a7c
41 --- /dev/null
42 +++ b/debian/zfsutils-linux.preinst
43 @@ -0,0 +1,17 @@
44 +#!/bin/sh
45 +
46 +set -e
47 +
48 +if dpkg-maintscript-helper supports rm_conffile 2>/dev/null
49 +then
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 -- "$@"
57 +fi
58 +
59 +#DEBHELPER#
60 +
61 --
62 2.1.4
63