From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 71A29749C4 for ; Fri, 9 Jul 2021 17:45:36 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 6F11C2873C for ; Fri, 9 Jul 2021 17:45:36 +0200 (CEST) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id 17D402871B for ; Fri, 9 Jul 2021 17:45:35 +0200 (CEST) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id E023F40FA1 for ; Fri, 9 Jul 2021 17:45:34 +0200 (CEST) From: Stoiko Ivanov To: pve-devel@lists.proxmox.com Date: Fri, 9 Jul 2021 17:41:17 +0200 Message-Id: <20210709154118.2221085-2-s.ivanov@proxmox.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210709154118.2221085-1-s.ivanov@proxmox.com> References: <20210709154118.2221085-1-s.ivanov@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.477 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pve-devel] [PATCH zfsonlinux 1/2] do not restart most services upon upgrade X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jul 2021 15:45:36 -0000 zfs-zed is the only classical daemon, which benefits from a restart, so restart only zfs-zed. Noticed during the transition from ZFS 0.8.x to 2.0.0 zvol_wait, which is called by zfs-volume-wait.service was changed to also output the redacted_snap property of the datasets. This property does not exist if the kernelmodule is still 0.8.x, causing an error to be printed to the journal. Signed-off-by: Stoiko Ivanov --- debian/rules | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/debian/rules b/debian/rules index e5166882..826bdc98 100755 --- a/debian/rules +++ b/debian/rules @@ -107,6 +107,14 @@ override_dh_install: override_dh_missing: dh_missing --fail-missing +override_dh_installsystemd: + # these to lines prevent the restarting of all systemd services, except + # zfs-zed - they should not be restarted (importing, mounting, creating + # links in /dev, and can cause erros in the log + # (upon major.minor change) + dh_installsystemd --no-stop-on-upgrade -X zfs-zed.service + dh_installsystemd --name zfs-zed + override_dh_installdocs: dh_installdocs ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS))) -- 2.30.2