Devuan bug report logs - #14
zfs: missing sysvinit scripts

Package: zfs; Severity: critical; Reported by: katolaz <katolaz@freaknet.org>; Keywords: ascii; Done: Chris Dos <chris@chrisdos.com>; Maintainer for zfs is (unknown).

Message received at 14-done@bugs.devuan.org:


Received: (at 14-done) by bugs.devuan.org; 1 Nov 2018 17:10:04 +0000
Return-Path: <chris@chrisdos.com>
Delivered-To: devuanbugs@dyne.org
Received: from tupac3.dyne.org [195.169.149.119]
	by fulcanelli with IMAP (fetchmail-6.3.26)
	for <debbugs@localhost> (single-drop); Thu, 01 Nov 2018 18:10:04 +0100 (CET)
Received: from windwalker.chrisdos.com (windwalker.chrisdos.com [71.33.251.73])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by vm6.ganeti.dyne.org (Postfix) with ESMTPS id 9DB06F60AA4
	for <14-done@bugs.devuan.org>; Thu,  1 Nov 2018 18:07:55 +0100 (CET)
Authentication-Results: vm6.ganeti.dyne.org;
	dkim=pass (1024-bit key; unprotected) header.d=chrisdos.com header.i=@chrisdos.com header.b="eEK28zA4";
	dkim=pass (1024-bit key) header.d=chrisdos.com header.i=@chrisdos.com header.b="cfqADwcX";
	dkim-atps=neutral
Received: from localhost (localhost.localdomain [127.0.0.1])
	by windwalker.chrisdos.com (Postfix) with ESMTP id C652E114DC8
	for <14-done@bugs.devuan.org>; Thu,  1 Nov 2018 11:07:10 -0600 (MDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=chrisdos.com;
	s=windwalker-dkim; t=1541092030;
	bh=pjIHyQQ7OW//NK3CiFELZQyTe95zojoMuCUU+Zn5Ubw=;
	h=To:From:Subject:Date:From;
	b=eEK28zA4ObaR61MaCvnGcXu62qcy9fyXlI++x6NUumrKeLDzXXQWoqOey0Z5jNYqa
	 kJSiRU8UpNTDTUQc0E7LP622ERniNspWnRHFJoRyNQY5X7aUxXMNYODL1BTzAHF0z/
	 7+C2WnMknH1IveHHL5pUJxw+Ms/zuL7jghIC7gyA=
X-Virus-Scanned: Debian amavisd-new at windwalker.chrisdos.com
Received: from windwalker.chrisdos.com ([127.0.0.1])
	by localhost (windwalker.chrisdos.com [127.0.0.1]) (amavisd-new, port 10026)
	with SMTP id y0l-gEqVwQy3 for <14-done@bugs.devuan.org>;
	Thu,  1 Nov 2018 11:07:01 -0600 (MDT)
Received: from muaddib.chrisdos.com (muaddib.local [192.168.9.9])
	by windwalker.chrisdos.com (Postfix) with ESMTPSA id AD3AE114E83
	for <14-done@bugs.devuan.org>; Thu,  1 Nov 2018 11:07:01 -0600 (MDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=chrisdos.com;
	s=windwalker-dkim; t=1541092021;
	bh=pjIHyQQ7OW//NK3CiFELZQyTe95zojoMuCUU+Zn5Ubw=;
	h=To:From:Subject:Date:From;
	b=cfqADwcXHpjCIxajLHPCT95y8i2nYnTxJ3cg0KoRtEBMIhHKUxh0II5BU1xIwzzgZ
	 CO5xctYJM+stGwEa15vQ4cK1ld0h2G3Xb1U5Szyx49/jgmpsA1KZzg4K5HrqbhM0Nc
	 8lPPeERDRh8P8NM0RcT7xTHEhOY7qWn07JdseBNg=
To: 14-done@bugs.devuan.org
From: Chris Dos <chris@chrisdos.com>
Subject: Close
Message-ID: <e15c831f-a0bc-fc18-7bc3-246244f43948@chrisdos.com>
Date: Thu, 1 Nov 2018 11:07:01 -0600
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
 Thunderbird/60.0
MIME-Version: 1.0
Content-Type: multipart/alternative;
 boundary="------------A567ACFC957F7F6763A81523"
Content-Language: en-US
X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID,
	DKIM_VALID_AU,HTML_MESSAGE,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS
	autolearn=disabled version=3.4.1
X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tupac3.dyne.org

This is a multi-part message in MIME format.
--------------A567ACFC957F7F6763A81523
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit

Fixed in Debian upstream.

--------------A567ACFC957F7F6763A81523
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit

<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Fixed in Debian upstream.<br>
  </body>
</html>

--------------A567ACFC957F7F6763A81523--


Notification sent to katolaz <katolaz@freaknet.org>:
bug acknowledged by developer. Full text available.
Reply sent to Chris Dos <chris@chrisdos.com>:
You have taken responsibility. Full text available.

Message received at 14@bugs.devuan.org:


Received: (at 14) by bugs.devuan.org; 1 Nov 2018 13:20:03 +0000
Return-Path: <chris@chrisdos.com>
Delivered-To: devuanbugs@dyne.org
Received: from tupac3.dyne.org [195.169.149.119]
	by fulcanelli with IMAP (fetchmail-6.3.26)
	for <debbugs@localhost> (single-drop); Thu, 01 Nov 2018 14:20:03 +0100 (CET)
Received: from windwalker.chrisdos.com (windwalker.chrisdos.com [71.33.251.73])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by vm6.ganeti.dyne.org (Postfix) with ESMTPS id 618F3F60A83
	for <14@bugs.devuan.org>; Thu,  1 Nov 2018 14:17:27 +0100 (CET)
Authentication-Results: vm6.ganeti.dyne.org;
	dkim=pass (1024-bit key; unprotected) header.d=chrisdos.com header.i=@chrisdos.com header.b="NZepzdVJ";
	dkim=fail reason="signature verification failed" (1024-bit key) header.d=chrisdos.com header.i=@chrisdos.com header.b="OEeG0dMU";
	dkim-atps=neutral
Received: from localhost (localhost.localdomain [127.0.0.1])
	by windwalker.chrisdos.com (Postfix) with ESMTP id 9BDB8113C55
	for <14@bugs.devuan.org>; Thu,  1 Nov 2018 07:16:41 -0600 (MDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=chrisdos.com;
	s=windwalker-dkim; t=1541078201;
	bh=Xh2z9PS6lHO0yAes8kkSXYL5fmBW/hkWzEkiQyBRaq4=;
	h=To:From:Subject:Date:From;
	b=NZepzdVJvb4Xn4ctkqIXL/ddrTWFA6CnaehGQrwG5TKt3JyY5iBE5zNozva2zW87f
	 0RtfKNwSeTzh7g4bd5RwzhHMPtkjmSndMvlsqLTJRVHrQAmOZE/ESHSlkkz8L1lmKk
	 mX+8dSkeW0yjvzw/lIHOLJhP08dpc66dZuTvMQOM=
X-Virus-Scanned: Debian amavisd-new at windwalker.chrisdos.com
Received: from windwalker.chrisdos.com ([127.0.0.1])
	by localhost (windwalker.chrisdos.com [127.0.0.1]) (amavisd-new, port 10026)
	with SMTP id 8g71hVyBopia for <14@bugs.devuan.org>;
	Thu,  1 Nov 2018 07:16:32 -0600 (MDT)
Received: from muaddib.chrisdos.com (muaddib.local [192.168.9.9])
	by windwalker.chrisdos.com (Postfix) with ESMTPSA id 8BC44113C52
	for <14@bugs.devuan.org>; Thu,  1 Nov 2018 07:16:32 -0600 (MDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=chrisdos.com;
	s=windwalker-dkim; t=1541078192;
	bh=iWXyHnnn4dD9cCvy7nlJnQli/TZVY5WfbeYZDQ5pyBw=;
	h=To:From:Subject:Date:From;
	b=OEeG0dMUDD3XYNlRiMrvn5omKttSFsJ3xe2Y7PlWAItetSUlRqvTVhafo885FFX7e
	 Iupw43PQEkvGULp8W04PaFYXgrBxZsBxSrs4vvHlg6XUEN5PJGY54Sk9EOyq09sJv7
	 qPpnoxunGWHLSw09o9lpW27tQRTEvViBjvP74K2I=
To: 14@bugs.devuan.org
From: Chris Dos <chris@chrisdos.com>
Subject: Close Bug
Message-ID: <a7f04b99-27df-013d-5dc2-7cf4eb26363d@chrisdos.com>
Date: Thu, 1 Nov 2018 07:16:32 -0600
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
 Thunderbird/60.0
MIME-Version: 1.0
Content-Type: multipart/alternative;
 boundary="------------D313DA2B0FFA0E50C3BC6147"
Content-Language: en-US
X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID,
	DKIM_VALID_AU,HTML_MESSAGE,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS
	autolearn=disabled version=3.4.1
X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tupac3.dyne.org

This is a multi-part message in MIME format.
--------------D313DA2B0FFA0E50C3BC6147
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

This was fixed in Debian upstream.

=C2=A0=C2=A0=C2=A0 Chris


--------------D313DA2B0FFA0E50C3BC6147
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

<html>
  <head>

    <meta http-equiv=3D"content-type" content=3D"text/html; charset=3DUTF=
-8">
  </head>
  <body text=3D"#000000" bgcolor=3D"#FFFFFF">
    This was fixed in Debian upstream.<br>
    <br>
    =C2=A0=C2=A0=C2=A0 Chris<br>
    <div class=3D"moz-signature"><br>
    </div>
  </body>
</html>

--------------D313DA2B0FFA0E50C3BC6147--


Acknowledgement sent to Chris Dos <chris@chrisdos.com>:
Extra info received and forwarded to list. Copy sent to KatolaZ <katolaz@freaknet.org>. Full text available.
Information forwarded to devuan-bugs@lists.dyne.org, KatolaZ <katolaz@freaknet.org>:
bug#14; Package zfs. Full text available.

Message received at 14@bugs.devuan.org:


Received: (at 14) by bugs.devuan.org; 9 Oct 2018 17:40:07 +0000
Return-Path: <chris@chrisdos.com>
Delivered-To: devuanbugs@dyne.org
Received: from tupac3.dyne.org [195.169.149.119]
	by fulcanelli with IMAP (fetchmail-6.3.26)
	for <debbugs@localhost> (single-drop); Tue, 09 Oct 2018 19:40:07 +0200 (CEST)
Received: from windwalker.chrisdos.com (windwalker.chrisdos.com [71.33.251.73])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by vm6.ganeti.dyne.org (Postfix) with ESMTPS id 48FE7F609DD
	for <14@bugs.devuan.org>; Tue,  9 Oct 2018 19:38:26 +0200 (CEST)
Authentication-Results: vm6.ganeti.dyne.org;
	dkim=pass (1024-bit key; unprotected) header.d=chrisdos.com header.i=@chrisdos.com header.b="cpHWRQm1";
	dkim=fail reason="signature verification failed" (1024-bit key) header.d=chrisdos.com header.i=@chrisdos.com header.b="K5UV9c+i";
	dkim-atps=neutral
Received: from localhost (localhost.localdomain [127.0.0.1])
	by windwalker.chrisdos.com (Postfix) with ESMTP id 080DF11F4E3
	for <14@bugs.devuan.org>; Tue,  9 Oct 2018 11:38:00 -0600 (MDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=chrisdos.com;
	s=windwalker-dkim; t=1539106680;
	bh=SqFtea+8orbJJDVOd3JnHg1cSFP3ImAVRK+Nmi6Qacg=;
	h=To:From:Subject:Date:From;
	b=cpHWRQm1nwz6zzEhhO4rwdBqkF65NrPEMAPVR/NKbNL/2CuGG4MkjViLys0f3lpvc
	 v/yd5mX/AuwP9bS66KGEHZXlHl4JH+jHWFxfI1+Wu7ucGVgaoRPdR1QicUlA1/Kp8w
	 pZp9vPjyzXo0YyB3fcj7DgMuaH/kkgKka0Jn0O9M=
X-Virus-Scanned: Debian amavisd-new at windwalker.chrisdos.com
Received: from windwalker.chrisdos.com ([127.0.0.1])
	by localhost (windwalker.chrisdos.com [127.0.0.1]) (amavisd-new, port 10026)
	with SMTP id hDkKtGpq-WgN for <14@bugs.devuan.org>;
	Tue,  9 Oct 2018 11:37:51 -0600 (MDT)
Received: from muaddib.chrisdos.com (unknown [IPv6:2001:470:4b:38f:777::8702])
	by windwalker.chrisdos.com (Postfix) with ESMTPSA id 0A13911F524
	for <14@bugs.devuan.org>; Tue,  9 Oct 2018 11:37:51 -0600 (MDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=chrisdos.com;
	s=windwalker-dkim; t=1539106671;
	bh=oJB+e94r6WZKO5OmMQCzbZy1qRZWhv3ABNX3HVwUC38=;
	h=To:From:Subject:Date:From;
	b=K5UV9c+iBJUJiADJQvMDf5GSX406VPqGXl0wcGJ7EVziKBaKRVwW2PlL0tX4iiqdY
	 cYr22iyeWLkU22REdwkKUpEHvr5CfIzIVReWvIvkVbfTBCDUJ6Nza5B15GiHVf6y5e
	 X1DeOfv+hTAfQM5tt8HDm1I0d+uN0nv08b0DjXc8=
To: 14@bugs.devuan.org
From: Chris Dos <chris@chrisdos.com>
Subject: Fixed Patch
Message-ID: <8eb0d0c5-e52c-dd8f-4ad0-637abdfd0b5b@chrisdos.com>
Date: Tue, 9 Oct 2018 11:37:50 -0600
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
 Thunderbird/60.0
MIME-Version: 1.0
Content-Type: multipart/mixed;
 boundary="------------799798EF2E76602011EEE0CC"
Content-Language: en-US
X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID,
	DKIM_VALID_AU,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=disabled
	version=3.4.1
X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tupac3.dyne.org

This is a multi-part message in MIME format.
--------------799798EF2E76602011EEE0CC
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit

I must have missed adding some information for the init scripts in the last
patch.  This attached patch should have everything.

--------------799798EF2E76602011EEE0CC
Content-Type: text/x-patch;
 name="sysvinit_patch_7_826994_0.7.11-1.diff"
Content-Disposition: attachment;
 filename="sysvinit_patch_7_826994_0.7.11-1.diff"
Content-Transfer-Encoding: quoted-printable

diff -Nru zfs-linux-0.7.11/debian/changelog zfs-linux-0.7.11/debian/chang=
elog
--- zfs-linux-0.7.11/debian/changelog	2018-09-19 02:45:18.000000000 -0600
+++ zfs-linux-0.7.11/debian/changelog	2018-10-09 11:25:27.000000000 -0600
@@ -1,3 +1,10 @@
+zfs-linux (0.7.11-1.1) UNRELEASED; urgency=3Dmedium
+
+  * Non-maintainer upload.
+  * Add sysvinit scripts.
+
+ -- Chris Dos <chris@chrisdos.com>  Tue, 09 Oct 2018 11:25:27 -0600
+
 zfs-linux (0.7.11-1) unstable; urgency=3Dmedium
=20
   [ Aron Xu ]
diff -Nru zfs-linux-0.7.11/debian/patches/1004-zed-service-bindir.patch z=
fs-linux-0.7.11/debian/patches/1004-zed-service-bindir.patch
--- zfs-linux-0.7.11/debian/patches/1004-zed-service-bindir.patch	2018-09=
-17 19:36:28.000000000 -0600
+++ zfs-linux-0.7.11/debian/patches/1004-zed-service-bindir.patch	2018-10=
-09 11:22:50.000000000 -0600
@@ -1,11 +1,14 @@
-Description: Fix the path to the zed binary on the systemd unit.
+Description: Fix the path to the zed binary on the systemd unit and
+ the sysvinit script.
  We install zed into /usr/sbin manually meanwhile the upstream default
  is installing it into /sbin.
  Ubuntu packages also install zed to /usr/sbin, but they ship their own
  zfs-zed unit.
 Author: Carlos Alberto Lopez <clopez@igalia.com>
 Author: Fabian Gr=FCnbichler <f.gruenbichler@proxmox.com>
+Author: Chris Dos <chris@chrisdos.com>
 Bug-Debian: https://bugs.debian.org/849813
+Bug-Debian: https://bugs.debian.org/826994
 Forwarded: no
 --- a/etc/systemd/system/zfs-zed.service.in
 +++ b/etc/systemd/system/zfs-zed.service.in
@@ -18,3 +21,13 @@
  Restart=3Don-abort
 =20
  [Install]
+--- a/etc/init.d/zfs-functions.in
++++ b/etc/init.d/zfs-functions.in
+@@ -89,7 +89,7 @@
+
+ # Paths to what we need
+ ZFS=3D"@sbindir@/zfs"
+-ZED=3D"@sbindir@/zed"
++ZED=3D"/usr/sbin/zed"
+ ZPOOL=3D"@sbindir@/zpool"
+ ZPOOL_CACHE=3D"@sysconfdir@/zfs/zpool.cache"
diff -Nru zfs-linux-0.7.11/debian/rules zfs-linux-0.7.11/debian/rules
--- zfs-linux-0.7.11/debian/rules	2018-09-19 02:44:55.000000000 -0600
+++ zfs-linux-0.7.11/debian/rules	2018-10-09 11:24:24.000000000 -0600
@@ -115,6 +115,26 @@
 	chmod a-x $(CURDIR)/debian/tmp/etc/zfs/zfs-functions
 	chmod a-x $(CURDIR)/debian/tmp/etc/default/zfs
=20
+override_dh_installinit:
+	@# Install the /etc/init.d/zfs-import script.
+	dh_installinit -pzfsutils-linux --name=3Dzfs-import \
+	--no-restart-on-upgrade --no-start
+
+	@# Install the /etc/init.d/zfs-mount script.
+	dh_installinit -pzfsutils-linux --name=3Dzfs-mount \
+	--no-restart-on-upgrade --no-start
+
+	@# Install the /etc/init.d/zfs-share script.
+	dh_installinit -pzfsutils-linux --name=3Dzfs-share \
+	--no-restart-on-upgrade --no-start
+
+	@# Add a dummy (link to /dev/null) for zfs-import.service
+	ln -s /dev/null $(CURDIR)/debian/zfsutils-linux/lib/systemd/system/zfs-=
import.service
+
+	@# Install the ZED init file.
+	dh_installinit -pzfs-zed --name=3Dzfs-zed \
+	--no-restart-on-upgrade --no-start
+
 override_dh_dkms:
 	dh_dkms -V $(DEB_VERSION_UPSTREAM)
=20
diff -Nru zfs-linux-0.7.11/debian/zfsutils-linux.install zfs-linux-0.7.11=
/debian/zfsutils-linux.install
--- zfs-linux-0.7.11/debian/zfsutils-linux.install	2018-09-17 19:36:28.00=
0000000 -0600
+++ zfs-linux-0.7.11/debian/zfsutils-linux.install	2018-10-09 11:24:24.00=
0000000 -0600
@@ -1,6 +1,8 @@
 ../tree/zfsutils-linux/* /
 etc/default/zfs
 etc/zfs/zfs-functions
+etc/init.d/zfs-import
+etc/init.d/zfs-mount
 etc/zfs/zpool.d/
 lib/systemd/system-preset/
 lib/systemd/system/zfs-import-cache.service
diff -Nru zfs-linux-0.7.11/debian/zfs-zed.install zfs-linux-0.7.11/debian=
/zfs-zed.install
--- zfs-linux-0.7.11/debian/zfs-zed.install	2018-09-17 19:36:28.000000000=
 -0600
+++ zfs-linux-0.7.11/debian/zfs-zed.install	2018-10-09 11:24:24.000000000=
 -0600
@@ -1,4 +1,6 @@
 etc/zfs/zed.d/*
+etc/init.d/zfs-zed
+etc/init.d/zfs-share
 lib/systemd/system/zfs-zed.service
 usr/lib/*/zfs/zed.d/*
 usr/sbin/zed

--------------799798EF2E76602011EEE0CC--


Acknowledgement sent to Chris Dos <chris@chrisdos.com>:
Extra info received and forwarded to list. Copy sent to KatolaZ <katolaz@freaknet.org>. Full text available.
Information forwarded to devuan-bugs@lists.dyne.org, KatolaZ <katolaz@freaknet.org>:
bug#14; Package zfs. Full text available.

Message received at 14@bugs.devuan.org:


Received: (at 14) by bugs.devuan.org; 25 Sep 2018 20:20:04 +0000
Return-Path: <chris@chrisdos.com>
Delivered-To: devuanbugs@dyne.org
Received: from tupac3.dyne.org [195.169.149.119]
	by fulcanelli with IMAP (fetchmail-6.3.26)
	for <debbugs@localhost> (single-drop); Tue, 25 Sep 2018 22:20:04 +0200 (CEST)
Received: from windwalker.chrisdos.com (windwalker.chrisdos.com [71.33.251.73])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by vm6.ganeti.dyne.org (Postfix) with ESMTPS id D3F6BF608A1
	for <14@bugs.devuan.org>; Tue, 25 Sep 2018 22:10:41 +0200 (CEST)
Authentication-Results: vm6.ganeti.dyne.org;
	dkim=pass (1024-bit key; unprotected) header.d=chrisdos.com header.i=@chrisdos.com header.b="g1R/P2gy";
	dkim=fail reason="signature verification failed" (1024-bit key) header.d=chrisdos.com header.i=@chrisdos.com header.b="cqV9f2O7";
	dkim-atps=neutral
Received: from localhost (localhost.localdomain [127.0.0.1])
	by windwalker.chrisdos.com (Postfix) with ESMTP id E950C1068F1
	for <14@bugs.devuan.org>; Tue, 25 Sep 2018 14:10:26 -0600 (MDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=chrisdos.com;
	s=windwalker-dkim; t=1537906226;
	bh=JmYqm3kEH8euAg35MWsgaHDkk4Yh0BQN4nWgJDJofYA=;
	h=To:From:Subject:Date:From;
	b=g1R/P2gyW+DSWzpBfgQqtX7G7UZqP9HpeGjltsiS+j5HEokFGD2RHCO/QEbtk8KJB
	 vjPQHsP6ZpNSppl1SEG7OSlAqPHxR9ZJg92IfGVecn6+EQ3fzkhvnOXrNwELcUkdOr
	 tC61KSP2ythFIjz9xrfYYsSLsS8qC+W++Pg/sDUg=
X-Virus-Scanned: Debian amavisd-new at windwalker.chrisdos.com
Received: from windwalker.chrisdos.com ([127.0.0.1])
	by localhost (windwalker.chrisdos.com [127.0.0.1]) (amavisd-new, port 10026)
	with SMTP id BJO-MlZlDc9A for <14@bugs.devuan.org>;
	Tue, 25 Sep 2018 14:10:18 -0600 (MDT)
Received: from muaddib.chrisdos.com (unknown [IPv6:2001:470:4b:38f:777::8750])
	by windwalker.chrisdos.com (Postfix) with ESMTPSA id 873F11068F0
	for <14@bugs.devuan.org>; Tue, 25 Sep 2018 14:10:18 -0600 (MDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=chrisdos.com;
	s=windwalker-dkim; t=1537906218;
	bh=9nW547Id2ErvgMLVqFxLMjgIyO5wUvAah+l1JGu8R3E=;
	h=To:From:Subject:Date:From;
	b=cqV9f2O7Fd2g16lKVOwrvGCYTqd73wSZ8YaZbzo3Q8EHoM4d2jVxrTbOALlP6Dfaz
	 1hQhyBQ67bIzAXKeG29rVBeNCugpguBaOG05PetoBaEH++EsWmvdKfReY2F+KqMfH7
	 z3fRRoS0FoY6Nnc3/6ia8NZvP95iAZiQAbR56Rzc=
To: 14@bugs.devuan.org
From: Chris Dos <chris@chrisdos.com>
Subject: Updated for 0.7.11-1
Message-ID: <6cc3a96f-4d32-c46c-b651-9ffdabf95af0@chrisdos.com>
Date: Tue, 25 Sep 2018 14:10:18 -0600
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
 Thunderbird/60.0
MIME-Version: 1.0
Content-Type: multipart/mixed;
 boundary="------------01E5DA34ACAB52179EF1B584"
Content-Language: en-US
X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID,
	DKIM_VALID_AU,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=disabled
	version=3.4.1
X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tupac3.dyne.org

This is a multi-part message in MIME format.
--------------01E5DA34ACAB52179EF1B584
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit

I've updated the patches for zfs 0.7.11-1.  I changed the patch for the
lsb_release to just add Devuan to a list of choices.

--------------01E5DA34ACAB52179EF1B584
Content-Type: text/x-patch;
 name="add_devuan_compatibility_900089.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="add_devuan_compatibility_900089.patch"

Description: Add Devuan compatiblity.
Author: Chris Dos <chris@chrisdos.com>
Bug-Debian: https://bugs.debian.org/900089
Forwarded: no
--- a/debian/zfs-dkms.dkms
+++ b/debian/zfs-dkms.dkms
@@ -7,7 +7,7 @@ PRE_BUILD="configure
   --with-config=kernel
   --with-linux=$(
     case `lsb_release -is` in
-      (Debian)
+      (Debian|Devuan)
         if [[ -e ${kernel_source_dir/%build/source} ]]
         then
           echo ${kernel_source_dir/%build/source}

--------------01E5DA34ACAB52179EF1B584
Content-Type: text/x-patch;
 name="sysvinit_patch_6_826994_0.7.11-1.diff"
Content-Disposition: attachment;
 filename="sysvinit_patch_6_826994_0.7.11-1.diff"
Content-Transfer-Encoding: quoted-printable

diff -Nru zfs-linux-0.7.11/debian/changelog zfs-linux-0.7.11/debian/chang=
elog
--- zfs-linux-0.7.11/debian/changelog	2018-09-19 02:45:18.000000000 -0600
+++ zfs-linux-0.7.11/debian/changelog	2018-09-25 12:40:25.000000000 -0600
@@ -1,3 +1,10 @@
+zfs-linux (0.7.11-1.1) UNRELEASED; urgency=3Dmedium
+
+  * Non-maintainer upload.
+  * Add sysvinit scripts.
+
+ -- Chris Dos <chris@chrisdos.com>  Tue, 25 Sep 2018 12:40:25 -0600
+
 zfs-linux (0.7.11-1) unstable; urgency=3Dmedium
=20
   [ Aron Xu ]
diff -Nru zfs-linux-0.7.11/debian/patches/1004-zed-service-bindir.patch z=
fs-linux-0.7.11/debian/patches/1004-zed-service-bindir.patch
--- zfs-linux-0.7.11/debian/patches/1004-zed-service-bindir.patch	2018-09=
-17 19:36:28.000000000 -0600
+++ zfs-linux-0.7.11/debian/patches/1004-zed-service-bindir.patch	2018-09=
-25 10:31:09.000000000 -0600
@@ -1,11 +1,14 @@
-Description: Fix the path to the zed binary on the systemd unit.
+Description: Fix the path to the zed binary on the systemd unit and
+ the sysvinit script.
  We install zed into /usr/sbin manually meanwhile the upstream default
  is installing it into /sbin.
  Ubuntu packages also install zed to /usr/sbin, but they ship their own
  zfs-zed unit.
 Author: Carlos Alberto Lopez <clopez@igalia.com>
 Author: Fabian Gr=FCnbichler <f.gruenbichler@proxmox.com>
+Author: Chris Dos <chris@chrisdos.com>
 Bug-Debian: https://bugs.debian.org/849813
+Bug-Debian: https://bugs.debian.org/826994
 Forwarded: no
 --- a/etc/systemd/system/zfs-zed.service.in
 +++ b/etc/systemd/system/zfs-zed.service.in
@@ -18,3 +21,13 @@
  Restart=3Don-abort
 =20
  [Install]
+--- a/etc/init.d/zfs-functions.in
++++ b/etc/init.d/zfs-functions.in
+@@ -89,7 +89,7 @@
+
+ # Paths to what we need
+ ZFS=3D"@sbindir@/zfs"
+-ZED=3D"@sbindir@/zed"
++ZED=3D"/usr/sbin/zed"
+ ZPOOL=3D"@sbindir@/zpool"
+ ZPOOL_CACHE=3D"@sysconfdir@/zfs/zpool.cache"

--------------01E5DA34ACAB52179EF1B584--


Acknowledgement sent to Chris Dos <chris@chrisdos.com>:
Extra info received and forwarded to list. Copy sent to KatolaZ <katolaz@freaknet.org>. Full text available.
Information forwarded to devuan-bugs@lists.dyne.org, KatolaZ <katolaz@freaknet.org>:
bug#14; Package zfs. Full text available.

Message received at 14@bugs.devuan.org:


Received: (at 14) by bugs.devuan.org; 3 Jun 2018 14:30:04 +0000
Return-Path: <chris@chrisdos.com>
Delivered-To: devuanbugs@dyne.org
Received: from tupac3.dyne.org [195.169.149.119]
	by fulcanelli with IMAP (fetchmail-6.3.26)
	for <debbugs@localhost> (single-drop); Sun, 03 Jun 2018 16:30:04 +0200 (CEST)
Received: from windwalker.chrisdos.com (windwalker.chrisdos.com [71.33.251.73])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by vm6.ganeti.dyne.org (Postfix) with ESMTPS id 611B3F6085A
	for <14@bugs.devuan.org>; Sun,  3 Jun 2018 16:26:43 +0200 (CEST)
Authentication-Results: vm6.ganeti.dyne.org;
	dkim=pass (1024-bit key; unprotected) header.d=chrisdos.com header.i=@chrisdos.com header.b="IJJqrNhT";
	dkim=fail reason="signature verification failed" (1024-bit key) header.d=chrisdos.com header.i=@chrisdos.com header.b="dtbzNgoO";
	dkim-atps=neutral
Received: from localhost (localhost.localdomain [127.0.0.1])
	by windwalker.chrisdos.com (Postfix) with ESMTP id E8848AEFD8
	for <14@bugs.devuan.org>; Sun,  3 Jun 2018 08:24:28 -0600 (MDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=chrisdos.com;
	s=windwalker-dkim; t=1528035868;
	bh=knMTCr/QhxeqkHhQwL85XbhQLkFgSeB42DQrmCfyeWE=;
	h=To:From:Subject:Date:From;
	b=IJJqrNhTyd72dUV9JofOrwEzmKND7sgDpASHmbFCk30TF1snW+mgXsghexb5zk4Gv
	 OAm+pvcuD2YayD817qwRJeoCLT0LFXZJYDR+/r/B2Hrz7haVqMORrk0PkC0mQDDNbz
	 UJgG5IRiyuqRshOvgbCuYB5TP0tvoG6ian6QxPZg=
X-Virus-Scanned: Debian amavisd-new at windwalker.chrisdos.com
Received: from windwalker.chrisdos.com ([127.0.0.1])
	by localhost (windwalker.chrisdos.com [127.0.0.1]) (amavisd-new, port 10026)
	with SMTP id PmbPqHysal11 for <14@bugs.devuan.org>;
	Sun,  3 Jun 2018 08:24:13 -0600 (MDT)
Received: from muaddib.chrisdos.com (unknown [IPv6:2001:470:4b:38f:777::868c])
	by windwalker.chrisdos.com (Postfix) with ESMTPSA id 90F44AF16E
	for <14@bugs.devuan.org>; Sun,  3 Jun 2018 08:24:13 -0600 (MDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=chrisdos.com;
	s=windwalker-dkim; t=1528035853;
	bh=ZU92B5izyD299bLRG8izMBdgFliqnEeizv2UIv+XbGY=;
	h=To:From:Subject:Date:From;
	b=dtbzNgoOtBFLM5q5AyT3LS14PQorxeZEJtxt9VM47+dVK5F1ynXbCyW0ODPnm4f55
	 Vs4u4OwiQHAa5BQihUKO1Jg1imxf0ignyFh6CnKMBIpnFABVQ420K4RJwUjETnY2D1
	 +RPNR4QDHfKoNanLUq5dnU8jTYyAxLHyo9QSincc=
To: 14@bugs.devuan.org
From: Chris Dos <chris@chrisdos.com>
Subject: Updated Patches and Debian LSB_Release Check
Message-ID: <ec8eb471-acf8-480b-b7e4-f237137111e5@chrisdos.com>
Date: Sun, 3 Jun 2018 08:24:13 -0600
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
 Thunderbird/52.8.0
MIME-Version: 1.0
Content-Type: multipart/mixed;
 boundary="------------3891CED4ED03F308D1F47D70"
Content-Language: en-US
X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID,
	DKIM_VALID_AU,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=disabled
	version=3.4.1
X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tupac3.dyne.org

This is a multi-part message in MIME format.
--------------3891CED4ED03F308D1F47D70
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit

Debian has added a specific lsb_release check to make sure the packages are
running on Debian in the zfs-dkms package when it tries to compile against the
kernel source.

See: https://bugs.debian.org/900089

So the zfs-dkms Debian package will refuse to work on Devuan now.

And it has been few days shy of two years and Debian still won't commit the
sysvinit patch.  :(
https://bugs.debian.org/826994

I've attached patches to remove the lsb_release and install the sysvinit
patches against zfs-0.7.9-3:

	Chris

--------------3891CED4ED03F308D1F47D70
Content-Type: text/x-patch;
 name="remove_lsb_release_dependency_900089.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="remove_lsb_release_dependency_900089.patch"

--- a/debian/zfs-dkms/usr/src/zfs-0.7.9/dkms.conf
+++ b/debian/zfs-dkms/usr/src/zfs-0.7.9/dkms.conf
@@ -6,8 +6,6 @@
   --prefix=/usr
   --with-config=kernel
   --with-linux=$(
-    case `lsb_release -is` in
-      (Debian)
         if [[ -e ${kernel_source_dir/%build/source} ]]
         then
           echo ${kernel_source_dir/%build/source}
@@ -15,11 +13,6 @@
           # A kpkg exception for Proxmox 2.0
           echo ${kernel_source_dir}
         fi
-      ;;
-      (*)
-        echo ${kernel_source_dir}
-      ;;
-    esac
   )
   --with-linux-obj=${kernel_source_dir}
   --with-spl=${source_tree}/spl-${PACKAGE_VERSION}
--- a/debian/zfs-dkms.dkms.debhelper
+++ b/debian/zfs-dkms.dkms.debhelper
@@ -6,8 +6,6 @@
   --prefix=/usr
   --with-config=kernel
   --with-linux=$(
-    case `lsb_release -is` in
-      (Debian)
         if [[ -e ${kernel_source_dir/%build/source} ]]
         then
           echo ${kernel_source_dir/%build/source}
@@ -15,11 +13,6 @@
           # A kpkg exception for Proxmox 2.0
           echo ${kernel_source_dir}
         fi
-      ;;
-      (*)
-        echo ${kernel_source_dir}
-      ;;
-    esac
   )
   --with-linux-obj=${kernel_source_dir}
   --with-spl=${source_tree}/spl-${PACKAGE_VERSION}
--- a/debian/zfs-dkms.dkms
+++ b/debian/zfs-dkms.dkms
@@ -6,8 +6,6 @@
   --prefix=/usr
   --with-config=kernel
   --with-linux=$(
-    case `lsb_release -is` in
-      (Debian)
         if [[ -e ${kernel_source_dir/%build/source} ]]
         then
           echo ${kernel_source_dir/%build/source}
@@ -15,11 +13,6 @@
           # A kpkg exception for Proxmox 2.0
           echo ${kernel_source_dir}
         fi
-      ;;
-      (*)
-        echo ${kernel_source_dir}
-      ;;
-    esac
   )
   --with-linux-obj=${kernel_source_dir}
   --with-spl=${source_tree}/spl-${PACKAGE_VERSION}

--------------3891CED4ED03F308D1F47D70
Content-Type: text/x-patch;
 name="sysvinit_patch_5_826994_0.7.9-3.diff"
Content-Disposition: attachment;
 filename="sysvinit_patch_5_826994_0.7.9-3.diff"
Content-Transfer-Encoding: quoted-printable

diff -Nru zfs-linux-0.7.9/debian/changelog zfs-linux-0.7.9/debian/changel=
og
--- zfs-linux-0.7.9/debian/changelog	2018-05-28 04:22:02.000000000 -0600
+++ zfs-linux-0.7.9/debian/changelog	2018-06-03 07:12:43.000000000 -0600
@@ -1,3 +1,10 @@
+zfs-linux (0.7.9-3.1) UNRELEASED; urgency=3Dmedium
+
+  * Non-maintainer upload.
+  * Add sysvinit scripts.=20
+
+ -- Chris Dos <chris@chrisdos.com>  Sun, 03 Jun 2018 07:12:43 -0600
+
 zfs-linux (0.7.9-3) unstable; urgency=3Dmedium
=20
   [ Antonio Russo ]
diff -Nru zfs-linux-0.7.9/debian/patches/1004-zed-service-bindir.patch zf=
s-linux-0.7.9/debian/patches/1004-zed-service-bindir.patch
--- zfs-linux-0.7.9/debian/patches/1004-zed-service-bindir.patch	2018-05-=
16 07:38:12.000000000 -0600
+++ zfs-linux-0.7.9/debian/patches/1004-zed-service-bindir.patch	2018-06-=
03 07:08:42.000000000 -0600
@@ -1,11 +1,14 @@
-Description: Fix the path to the zed binary on the systemd unit.
+Description: Fix the path to the zed binary on the systemd unit and
+ the sysvinit script.
  We install zed into /usr/sbin manually meanwhile the upstream default
  is installing it into /sbin.
  Ubuntu packages also install zed to /usr/sbin, but they ship their own
  zfs-zed unit.
 Author: Carlos Alberto Lopez <clopez@igalia.com>
 Author: Fabian Gr=FCnbichler <f.gruenbichler@proxmox.com>
+Author: Chris Dos <chris@chrisdos.com>
 Bug-Debian: https://bugs.debian.org/849813
+Bug-Debian: https://bugs.debian.org/826994
 Forwarded: no
 --- a/etc/systemd/system/zfs-zed.service.in
 +++ b/etc/systemd/system/zfs-zed.service.in
@@ -18,3 +21,13 @@
  Restart=3Don-abort
 =20
  [Install]
+--- a/etc/init.d/zfs-functions.in
++++ b/etc/init.d/zfs-functions.in
+@@ -89,7 +89,7 @@
+
+ # Paths to what we need
+ ZFS=3D"@sbindir@/zfs"
+-ZED=3D"@sbindir@/zed"
++ZED=3D"/usr/sbin/zed"
+ ZPOOL=3D"@sbindir@/zpool"
+ ZPOOL_CACHE=3D"@sysconfdir@/zfs/zpool.cache"
diff -Nru zfs-linux-0.7.9/debian/rules zfs-linux-0.7.9/debian/rules
--- zfs-linux-0.7.9/debian/rules	2018-05-17 10:11:36.000000000 -0600
+++ zfs-linux-0.7.9/debian/rules	2018-06-03 07:10:41.000000000 -0600
@@ -114,6 +114,26 @@
 	chmod a-x $(CURDIR)/debian/tmp/etc/zfs/zfs-functions
 	chmod a-x $(CURDIR)/debian/tmp/etc/default/zfs
=20
+override_dh_installinit:
+	@# Install the /etc/init.d/zfs-import script.
+	dh_installinit -pzfsutils-linux --name=3Dzfs-import \
+	--no-restart-on-upgrade --no-start
+
+	@# Install the /etc/init.d/zfs-mount script.
+	dh_installinit -pzfsutils-linux --name=3Dzfs-mount \
+	--no-restart-on-upgrade --no-start
+
+	@# Install the /etc/init.d/zfs-share script.
+	dh_installinit -pzfsutils-linux --name=3Dzfs-share \
+	--no-restart-on-upgrade --no-start
+
+	@# Add a dummy (link to /dev/null) for zfs-import.service
+	ln -s /dev/null $(CURDIR)/debian/zfsutils-linux/lib/systemd/system/zfs-=
import.service
+
+	@# Install the ZED init file.
+	dh_installinit -pzfs-zed --name=3Dzfs-zed \
+	--no-restart-on-upgrade --no-start
+
 override_dh_dkms:
 	dh_dkms -V $(DEB_VERSION_UPSTREAM)
=20
diff -Nru zfs-linux-0.7.9/debian/zfsutils-linux.install zfs-linux-0.7.9/d=
ebian/zfsutils-linux.install
--- zfs-linux-0.7.9/debian/zfsutils-linux.install	2018-05-28 04:07:08.000=
000000 -0600
+++ zfs-linux-0.7.9/debian/zfsutils-linux.install	2018-06-03 07:10:41.000=
000000 -0600
@@ -1,6 +1,8 @@
 ../tree/zfsutils-linux/* /
 etc/default/zfs
 etc/zfs/zfs-functions
+etc/init.d/zfs-import
+etc/init.d/zfs-mount
 etc/zfs/zpool.d/
 lib/systemd/system-preset/
 lib/systemd/system/zfs-import-cache.service
diff -Nru zfs-linux-0.7.9/debian/zfs-zed.install zfs-linux-0.7.9/debian/z=
fs-zed.install
--- zfs-linux-0.7.9/debian/zfs-zed.install	2018-05-16 07:38:12.000000000 =
-0600
+++ zfs-linux-0.7.9/debian/zfs-zed.install	2018-06-03 07:10:41.000000000 =
-0600
@@ -1,4 +1,6 @@
 etc/zfs/zed.d/*
+etc/init.d/zfs-zed
+etc/init.d/zfs-share
 lib/systemd/system/zfs-zed.service
 usr/lib/*/zfs/zed.d/*
 usr/sbin/zed

--------------3891CED4ED03F308D1F47D70--


Acknowledgement sent to Chris Dos <chris@chrisdos.com>:
Extra info received and forwarded to list. Copy sent to KatolaZ <katolaz@freaknet.org>. Full text available.
Information forwarded to devuan-bugs@lists.dyne.org, KatolaZ <katolaz@freaknet.org>:
bug#14; Package zfs. Full text available.

Message received at 14@bugs.devuan.org:


Received: (at 14) by bugs.devuan.org; 4 Mar 2018 18:20:06 +0000
Return-Path: <chris@chrisdos.com>
Delivered-To: devuanbugs@dyne.org
Received: from tupac3.dyne.org [195.169.149.119]
	by fulcanelli with IMAP (fetchmail-6.3.26)
	for <debbugs@localhost> (single-drop); Sun, 04 Mar 2018 19:20:06 +0100 (CET)
Received: from windwalker.chrisdos.com (windwalker.chrisdos.com [71.33.251.73])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by vm6.ganeti.dyne.org (Postfix) with ESMTPS id 2D6DAF604E7
	for <14@bugs.devuan.org>; Sun,  4 Mar 2018 19:20:39 +0100 (CET)
Authentication-Results: vm6.ganeti.dyne.org;
	dkim=pass (1024-bit key; unprotected) header.d=chrisdos.com header.i=@chrisdos.com header.b="cW8zV1x3";
	dkim=pass (1024-bit key) header.d=chrisdos.com header.i=@chrisdos.com header.b="e+kKiDEo";
	dkim-atps=neutral
Received: from localhost (localhost.localdomain [127.0.0.1])
	by windwalker.chrisdos.com (Postfix) with ESMTP id 029E51590
	for <14@bugs.devuan.org>; Sun,  4 Mar 2018 11:19:53 -0700 (MST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=chrisdos.com;
	s=windwalker-dkim; t=1520187593;
	bh=T7b1hDsbb1WbAl52ADH+O8vBTmSNaEqjMudjOge4eJg=;
	h=To:From:Subject:Date:From;
	b=cW8zV1x3ybX9X6DDkrZrk9z6nG1moiEl0lLi3YfU+gFMg72j4ggxlM0OAs4sq70gA
	 S6C2cC8rouYjT28CUrY6Y6R/QMJUsgJ4tMUHnMcgoXGESlOqnJ40HShgiuvKRUut7m
	 fm88GmBo8mqyiZxiBX1r2DpEM+8LTDjSdqlcxJEo=
X-Virus-Scanned: Debian amavisd-new at windwalker.chrisdos.com
Received: from windwalker.chrisdos.com ([127.0.0.1])
	by localhost (windwalker.chrisdos.com [127.0.0.1]) (amavisd-new, port 10026)
	with SMTP id eyhYM59NWSBt for <14@bugs.devuan.org>;
	Sun,  4 Mar 2018 11:19:45 -0700 (MST)
Received: from muaddib.chrisdos.com (unknown [IPv6:2001:470:4b:38f::7373])
	by windwalker.chrisdos.com (Postfix) with ESMTPSA id 91EEF1299
	for <14@bugs.devuan.org>; Sun,  4 Mar 2018 11:19:45 -0700 (MST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=chrisdos.com;
	s=windwalker-dkim; t=1520187585;
	bh=T7b1hDsbb1WbAl52ADH+O8vBTmSNaEqjMudjOge4eJg=;
	h=To:From:Subject:Date:From;
	b=e+kKiDEovzGHEdOs27xJtYMuyjQ8E5m8kBf3/zRu7+ni0NAUfA73mxY7LTHtAFlTX
	 yIFbta8XVgREGC9IK759eEJ3sdVovWsWHO2yAgsbr8/osCY/j98COncVPAtPBzXsy3
	 6ugGh8jnlnZkxWRBExHuOfVHr6mSDHoBb6ST1OGY=
To: 14@bugs.devuan.org
From: Chris Dos <chris@chrisdos.com>
Subject: Patch for ZFS 0.7.6-1
Message-ID: <d039ccf3-af32-a382-19e9-cdfa47ab4739@chrisdos.com>
Date: Sun, 4 Mar 2018 11:19:45 -0700
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
 Thunderbird/52.6.0
MIME-Version: 1.0
Content-Type: multipart/mixed;
 boundary="------------0BBABAEE66055FE8D72C19B2"
Content-Language: en-US
X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID,
	DKIM_VALID_AU,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=disabled
	version=3.4.1
X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tupac3.dyne.org

This is a multi-part message in MIME format.
--------------0BBABAEE66055FE8D72C19B2
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit

I've attached a patch that patches against Debian's 0.7.6-1 package.

--------------0BBABAEE66055FE8D72C19B2
Content-Type: text/x-patch;
 name="sysvinit_patch_3_826994.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="sysvinit_patch_3_826994.diff"

diff --git a/debian/rules b/debian/rules
index f445b58..ecb9448 100755
--- a/debian/rules
+++ b/debian/rules
@@ -112,6 +112,31 @@ override_dh_auto_install:
 	chmod a-x $(CURDIR)/debian/tmp/etc/zfs/zfs-functions
 	chmod a-x $(CURDIR)/debian/tmp/etc/default/zfs
 
+override_dh_installinit:
+	@# Install the /etc/init.d/zfs-import script.
+	dh_installinit -pzfsutils-linux --onlyscripts --name=zfs-import \
+	--no-restart-on-upgrade --no-start
+
+	@# Install the /etc/init.d/zfs-mount script.
+	dh_installinit -pzfsutils-linux --onlyscripts --name=zfs-mount \
+	--no-restart-on-upgrade --no-start
+
+	@# Install the /etc/init.d/zfs-share script.
+	# Disabled, as it does not start on install due to zfs-zed not
+	# being installed yet, and zfs-zed depends on zfsutils-linux.
+	# Error report:
+	# insserv: Service zfs-zed has to be enabled to start service zfs-share
+	# insserv: exiting now!
+	#dh_installinit -pzfsutils-linux --onlyscripts --name=zfs-share \
+	#  --no-restart-on-upgrade --no-start
+
+	@# Add a dummy (link to /dev/null) for zfs-import.service
+	ln -s /dev/null $(CURDIR)/debian/zfsutils-linux/lib/systemd/system/zfs-import.service
+
+	@# Install the ZED init file.
+	dh_installinit -pzfs-zed --onlyscripts --name=zfs-zed \
+	--no-restart-on-upgrade --no-start
+
 override_dh_dkms:
	dh_dkms -V $(DEB_VERSION_UPSTREAM)
 
diff --git a/debian/zfs-zed.install b/debian/zfs-zed.install
index b7c1fa9..998471b 100644
--- a/debian/zfs-zed.install
+++ b/debian/zfs-zed.install
@@ -1,4 +1,5 @@
 etc/zfs/zed.d/*
+etc/init.d/zfs-zed
 lib/systemd/system/zfs-zed.service
 usr/lib/*/zfs/zed.d/*
 usr/sbin/zed
diff --git a/debian/zfsutils-linux.install b/debian/zfsutils-linux.install
index b985ade..2cc4cb4 100644
--- a/debian/zfsutils-linux.install
+++ b/debian/zfsutils-linux.install
@@ -1,6 +1,8 @@
 ../tree/zfsutils-linux/* /
 etc/default/zfs
 etc/zfs/zfs-functions
+etc/init.d/zfs-import
+etc/init.d/zfs-mount
 etc/zfs/zpool.d/
 lib/systemd/system-preset/
 lib/systemd/system/zfs-import-cache.service
diff --git a/etc/init.d/zfs-zed.in b/etc/init.d/zfs-zed.in
index d0086ee..a5bb2e3 100755
--- a/etc/init.d/zfs-zed.in
+++ b/etc/init.d/zfs-zed.in
@@ -10,6 +10,8 @@
 # Provides:          zfs-zed
 # Required-Start:    zfs-mount
 # Required-Stop:     zfs-mount
+# Required-Start:    $local_fs zfs-mount
+# Required-Stop:     $local_fs zfs-mount
 # Default-Start:     2 3 4 5
 # Default-Stop:      0 1 6
 # X-Stop-After:      zfs-share
diff --git a/etc/init.d/zfs-functions.in b/etc/init.d/zfs-functions.in
index 97f2ea0..589cb6d 100644
--- a/etc/init.d/zfs-functions.in
+++ b/etc/init.d/zfs-functions.in
@@ -89,7 +89,7 @@ fi
 
 # Paths to what we need
 ZFS="@sbindir@/zfs"
-ZED="@sbindir@/zed"
+ZED="/usr/sbin/zed"
 ZPOOL="@sbindir@/zpool"
 ZPOOL_CACHE="@sysconfdir@/zfs/zpool.cache"
 


--------------0BBABAEE66055FE8D72C19B2--


Acknowledgement sent to Chris Dos <chris@chrisdos.com>:
Extra info received and forwarded to list. Copy sent to KatolaZ <katolaz@freaknet.org>. Full text available.
Information forwarded to devuan-bugs@lists.dyne.org, KatolaZ <katolaz@freaknet.org>:
bug#14; Package zfs. Full text available.
Tags added: ascii Request was from OmegaPhil <OmegaPhil@startmail.com> to control@bugs.devuan.org. Full text available.

Message received at 14@bugs.devuan.org:


Received: (at 14) by bugs.devuan.org; 18 Dec 2017 02:00:02 +0000
Return-Path: <katolaz@freaknet.org>
Delivered-To: devuanbugs@dyne.org
Received: from tupac3.dyne.org [195.169.149.119]
	by fulcanelli with IMAP (fetchmail-6.3.26)
	for <debbugs@localhost> (single-drop); Mon, 18 Dec 2017 03:00:02 +0100 (CET)
Received: from [127.0.0.1] (localhost [127.0.0.1])
	(Authenticated sender: katolaz@freaknet.org)
	with ESMTPSA id 10F10F60961
Date: Mon, 18 Dec 2017 01:56:45 +0000
From: KatolaZ <katolaz@freaknet.org>
To: 14@bugs.devuan.org
Subject: solved?
Message-ID: <20171218015645.GP26595@katolaz.homeunix.net>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="2/yrOQL5y1WUNiDj"
Content-Disposition: inline
User-Agent: Mutt/1.5.23 (2014-03-12)
X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED
	autolearn=disabled version=3.4.1
X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tupac3.dyne.org


--2/yrOQL5y1WUNiDj
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi there,

I have built the zfs packages for ascii-proposed. They should be
available from pkgmaster.devuan.org soon. Please test them and report
any problem. I will migrate it to ascii as soon as we know that
everything is all right.

I am also backporting the same version (0.6.5.9-5+devuan1.1) to
jessie. It should be available in jessie-backports soon.

If everithing goes fine with this version, I will probably backport
version 0.7.3 to ascii as well.

HH

--2/yrOQL5y1WUNiDj
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAlo3IF0ACgkQXyCzrgtfBi9m7ACcDyXsFa20f4zdvtNCLSLMzPqT
y8wAni2pLFWA84iknJIXtJymy8mTtJpg
=0PjO
-----END PGP SIGNATURE-----

--2/yrOQL5y1WUNiDj--


Acknowledgement sent to KatolaZ <katolaz@freaknet.org>:
Extra info received and forwarded to list. Full text available.
Information forwarded to devuan-bugs@lists.dyne.org:
bug#14; Package zfs. Full text available.

Message received at 14@bugs.devuan.org:


Received: (at 14) by bugs.devuan.org; 30 May 2017 11:20:02 +0000
Return-Path: <chris@chrisdos.com>
Delivered-To: devuanbugs@dyne.org
Received: from mail.dyne.org [178.62.188.7]
	by fulcanelli with IMAP (fetchmail-6.3.26)
	for <debbugs@localhost> (single-drop); Tue, 30 May 2017 13:20:02 +0200 (CEST)
Received: from windwalker.chrisdos.com (windwalker.chrisdos.com [71.33.251.73])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by tupac2.dyne.org (Postfix) with ESMTPS id 2377B18E8EF
	for <14@bugs.devuan.org>; Tue, 30 May 2017 11:13:10 +0000 (UTC)
Authentication-Results: tupac2.dyne.org; dkim=pass
	reason="1024-bit key; unprotected key"
	header.d=chrisdos.com header.i=@chrisdos.com header.b=DAf4a3Mh;
	dkim-adsp=pass; dkim-atps=neutral
Received: from localhost (localhost.localdomain [127.0.0.1])
	by windwalker.chrisdos.com (Postfix) with ESMTP id 75B67984AA
	for <14@bugs.devuan.org>; Tue, 30 May 2017 05:13:07 -0600 (MDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=chrisdos.com;
	s=windwalker-dkim; t=1496142787;
	bh=qHAi57pMX1xtzgZ8vONzko5HSlj5ygW/vC8KylPZ6Lo=;
	h=To:From:Subject:Date:From;
	b=DAf4a3Mh115hPdrDjvOpRtphfZu9C3AvRXlUy+U2YMNrUIje4kLow1Hee6LbtZ2Zb
	 Bq9KfbESjGxorPjyowqvt2DH6zVd6nJ9Pxnb22Jl4+LTIJCbbfCFOeFIY5IAxAu2Em
	 Pnq0yhHuqIeU5Jjbb7BMvO/xFRJwxWaBmgXM/GYQ=
X-Virus-Scanned: Debian amavisd-new at windwalker.chrisdos.com
Received: from windwalker.chrisdos.com ([127.0.0.1])
	by localhost (windwalker.chrisdos.com [127.0.0.1]) (amavisd-new, port 10026)
	with SMTP id lBY0diMbRCQp for <14@bugs.devuan.org>;
	Tue, 30 May 2017 05:13:01 -0600 (MDT)
Received: from muaddib.chrisdos.com (unknown [IPv6:2001:470:4b:38f::7373])
	by windwalker.chrisdos.com (Postfix) with ESMTPSA id DDD35984A8
	for <14@bugs.devuan.org>; Tue, 30 May 2017 05:13:01 -0600 (MDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=chrisdos.com;
	s=windwalker-dkim; t=1496142781;
	bh=qHAi57pMX1xtzgZ8vONzko5HSlj5ygW/vC8KylPZ6Lo=;
	h=To:From:Subject:Date:From;
	b=XZST7u8g70+K1L97M/tjORhV0OXsFa+eld1HFGzp1M/yGUNcJ5MKiysWMHzFSXqGW
	 w1IbDovN6IAXpnA0pgUB6ltMVVmKVvG7lrDub3QRtRHRw8/A6R59+y82fCrfnhbCeM
	 M/Xtfw6vEWinsgSolp7Wv5Y0ftPVVSnjiGvTV+qk=
To: 14@bugs.devuan.org
From: Chris Dos <chris@chrisdos.com>
Subject: Testing
Message-ID: <a0082755-8516-c846-9e57-bb0164bbd59e@chrisdos.com>
Date: Tue, 30 May 2017 05:13:01 -0600
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
 Thunderbird/45.8.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID,
	DKIM_VALID_AU,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=disabled
	version=3.4.0
X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on tupac2

I've been testing the patch for awhile now in four different systems and it's been working great for me.

There is also a patch against grub for ZFS that also seems to be ignored:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=848945


Acknowledgement sent to Chris Dos <chris@chrisdos.com>:
Extra info received and forwarded to list. Copy sent to KatolaZ <katolaz@freaknet.org>. Full text available.
Information forwarded to devuan-bugs@lists.dyne.org, KatolaZ <katolaz@freaknet.org>:
bug#14; Package zfs. Full text available.

Message received at 14@bugs.devuan.org:


Received: (at 14) by bugs.devuan.org; 18 May 2017 10:20:05 +0000
Return-Path: <katolaz@freaknet.org>
Delivered-To: devuanbugs@dyne.org
Received: from mail.dyne.org [178.62.188.7]
	by fulcanelli with IMAP (fetchmail-6.3.26)
	for <debbugs@localhost> (single-drop); Thu, 18 May 2017 12:20:05 +0200 (CEST)
Received: from [127.0.0.1] (localhost [127.0.0.1])
	(Authenticated sender: katolaz@freaknet.org)
	with ESMTPSA id 5BEAF18DEE0
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=freaknet.org; s=mail;
	t=1495102725; bh=LIqqKJwspqtbcM77ivZlnvZvMdill7xYHTiIy7II4Zw=;
	h=Date:From:To:Subject:From;
	b=XhB4JU/1hFS2hquE1l56Gww17+D7K+EMoVYWXiu5bJIKiWxYuIUpXUNWowDGpIkOk
	 ECJLBVM8AaBqyPpw+TNBfaKD+8yCKmUEtdSrnek5lQLTON/rV+znfC3BTAF99n6rUr
	 +Q406ovVOXYkqYeTdyEEhxsFog4sEHL1D9iu9G9M=
Date: Thu, 18 May 2017 11:18:44 +0100
From: KatolaZ <katolaz@freaknet.org>
To: 14@bugs.devuan.org
Subject: follow-up
Message-ID: <20170518101844.GW14814@katolaz.homeunix.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.23 (2014-03-12)
X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED
	autolearn=disabled version=3.4.0
X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on tupac2

Hi Chris,

thank you for your report. I have been following the corresponding bug
report in Debian (#826996) to which you have actively contributed. If
they don't decide to put those scripts back soon, we will. But we need
people to test them, so please be ready to help with that ;)


Acknowledgement sent to KatolaZ <katolaz@freaknet.org>:
Extra info received and forwarded to list. Full text available.
Information forwarded to devuan-bugs@lists.dyne.org:
bug#14; Package zfs. Full text available.

Message received at 14@bugs.devuan.org:


Received: (at 14) by bugs.devuan.org; 14 May 2017 20:40:06 +0000
Return-Path: <chris@chrisdos.com>
Delivered-To: devuanbugs@dyne.org
Received: from mail.dyne.org [178.62.188.7]
	by fulcanelli with IMAP (fetchmail-6.3.26)
	for <debbugs@localhost> (single-drop); Sun, 14 May 2017 22:40:06 +0200 (CEST)
Received: from windwalker.chrisdos.com (windwalker.chrisdos.com [71.33.251.73])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by tupac2.dyne.org (Postfix) with ESMTPS id 2807318D62B
	for <14@bugs.devuan.org>; Sun, 14 May 2017 20:30:11 +0000 (UTC)
Authentication-Results: tupac2.dyne.org; dkim=pass
	reason="1024-bit key; unprotected key"
	header.d=chrisdos.com header.i=@chrisdos.com header.b=FnA56IoF;
	dkim-adsp=pass; dkim-atps=neutral
Received: from localhost (localhost.localdomain [127.0.0.1])
	by windwalker.chrisdos.com (Postfix) with ESMTP id 1DD1368327
	for <14@bugs.devuan.org>; Sun, 14 May 2017 14:30:08 -0600 (MDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=chrisdos.com;
	s=windwalker-dkim; t=1494793808;
	bh=QRQ5DBBwDtiFItqxJsXaQ7o3c9uFR69hqIWee+n7Uhs=;
	h=To:From:Subject:Date:From;
	b=FnA56IoF2ehqDDoUFEU7+1djr9P8Iq1z9u1NvggEQg1msNu/gGat5DqlewncCSRHM
	 5hV3voYqxWbUEjtH3sSj1wFt5gShj5G5JEFhxcnaa15IDRlEEYn3sWX0iIF7FZs4fa
	 c/gBYhO140cUBrGNr56KpYVOz5hD4/mtYdk6JGEE=
X-Virus-Scanned: Debian amavisd-new at windwalker.chrisdos.com
Received: from windwalker.chrisdos.com ([127.0.0.1])
	by localhost (windwalker.chrisdos.com [127.0.0.1]) (amavisd-new, port 10026)
	with SMTP id zKD-LhHTzGx4 for <14@bugs.devuan.org>;
	Sun, 14 May 2017 14:29:57 -0600 (MDT)
Received: from muaddib.chrisdos.com (unknown [IPv6:2001:470:4b:38f::7373])
	by windwalker.chrisdos.com (Postfix) with ESMTPSA id 1C35E68323
	for <14@bugs.devuan.org>; Sun, 14 May 2017 14:29:57 -0600 (MDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=chrisdos.com;
	s=windwalker-dkim; t=1494793797;
	bh=QRQ5DBBwDtiFItqxJsXaQ7o3c9uFR69hqIWee+n7Uhs=;
	h=To:From:Subject:Date:From;
	b=DVykKoGDR8GedDY7tKzQ1eVv3aflT3AKnAd9GoDuFWjV34A1J3VGOdf/hBbmnIdAA
	 enDaNcTGE0VM29HUzGppzSrIP1lvHXppQ13rObNZ2hG5bJKmD9ZWzUhEg9EJ1AlAKx
	 of786z0oMifPDPZLZq1gTxjBQaPXyGO9LdyAwh14=
To: 14@bugs.devuan.org
From: Chris Dos <chris@chrisdos.com>
Subject: ZFS Init Scripts Available Patch
Message-ID: <ba0288f9-7eae-4d8b-26d9-ee31ecc3af07@chrisdos.com>
Date: Sun, 14 May 2017 14:29:56 -0600
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
 Thunderbird/45.8.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID,
	DKIM_VALID_AU,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=disabled
	version=3.4.0
X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on tupac2

There is a working patch in Debian bug report that could be used for the init scripts.:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=826994

The Debian maintainer seems to be ignoring it.

    Chris



Acknowledgement sent to Chris Dos <chris@chrisdos.com>:
Extra info received and forwarded to list. Copy sent to KatolaZ <katolaz@freaknet.org>. Full text available.
Information forwarded to devuan-bugs@lists.dyne.org, KatolaZ <katolaz@freaknet.org>:
bug#14; Package zfs. Full text available.
Severity set to `critical'. Request was from katolaz <katolaz@freaknet.org> to control@bugs.devuan.org. Full text available.

Message received at submit@bugs.devuan.org:


Received: (at submit) by bugs.devuan.org; 23 Mar 2017 15:18:02 +0000
Return-Path: <katolaz@freaknet.org>
Delivered-To: devuanbugs@dyne.org
Received: from mail.dyne.org [178.62.188.7]
	by fulcanelli with IMAP (fetchmail-6.3.26)
	for <debbugs@localhost> (single-drop); Thu, 23 Mar 2017 16:18:01 +0100 (CET)
Received: from [127.0.0.1] (localhost [127.0.0.1])
	(Authenticated sender: katolaz@freaknet.org)
	with ESMTPSA id 58824189C3C
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=freaknet.org; s=mail;
	t=1490282266; bh=bW7rmbkMISWye03GwvjqRSkpcY0hqd5GsYysnGkhbAU=;
	h=From:To:Subject:From;
	b=UXhyTgTmT5BZ+uzL6/obmWnhalXynVEgzpg0ayA6C3x1j5qNS3EYiCd/GkWNWvcG0
	 +bNNMOV2zQbYfmWK4ECgLYiF8KaTGNdyWI5TaT7QUS3GshbE/BGS5+eVCjHKjRdxzC
	 jqnZ9eWfRy+Nte4S2bg0gDJzw29DNiHCWL0SRjbE=
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: katolaz <katolaz@freaknet.org>
To: Debian Bug Tracking System <submit@bugs.devuan.org>
Subject: zfs: missing sysvinit scripts
X-Spam-Status: No, score=0.5 required=5.0 tests=ALL_TRUSTED,MISSING_DATE,
	MISSING_MID autolearn=disabled version=3.4.0
X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on tupac2

Package: zfs
Severity: critical

zfs is missing proper sysvinit configuration scripts


Acknowledgement sent to katolaz <katolaz@freaknet.org>:
New bug report received and forwarded. Copy sent to KatolaZ <katolaz@freaknet.org>. Full text available.
Report forwarded to owner@bugs.devuan.org@, KatolaZ <katolaz@freaknet.org>:
bug#14; Package zfs. Full text available.

Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Fri, 10 Jul 2020 14:39:01 UTC