From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 4EmfBLIzA2UBQgAA9RJhRA:P1 (envelope-from ) for ; Thu, 14 Sep 2023 18:24:18 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 4EmfBLIzA2UBQgAA9RJhRA (envelope-from ) for ; Thu, 14 Sep 2023 18:24:18 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A984B541D7 for ; Thu, 14 Sep 2023 18:24:17 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=univ-nantes.fr header.s=mailv2 header.b=OmQ0E68z; dkim=fail ("headers rsa verify failed") header.d=univ-nantes.fr header.s=mailv2 header.b=OmQ0E68z; dmarc=fail reason="SPF not aligned (relaxed)" header.from=univ-nantes.fr (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1694708658; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=d3bHCp0nsxEF09Zd/7SvaQiNQw+KY/SS0dQg2qSRu5A=; b=dCYL52bRF6GQO0IXuO6IfKBljekAGac0l/MejHkGyO2zpibA7fpQjzV9eZgmAmMNMN0jna 6yzZgg/R9BrpTaSKOCZxHen4LsxXnZMvHXx0Klja0DD9vPep3KXAtQZ0i3BWpLWkvjEuDQ oqc2p2AGZX8FMP+4XB7b+KpIRBsuDeFTxZ2aiZMXpJpbPA6/ivfxFjlGXnXutH/4jIz+nT dkJJjewwCDM045n67FfEiQv21i20PGdOJbycMm3UdH5sakRFq1e0y9yZU05vXksdco7CV+ Zoyl6EqOjC7eUj/0jNMZDxK01Sd6J6u1ilLTPdoFZsk649rzeiQRZr9z7yuRvQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1694708658; a=rsa-sha256; cv=none; b=saEzT9OY+cv2RjyBMmzRvbFiGPlUDvONQ0NA0DiFAJras2HoJcQFCG9MZYrDG5slpd542P MvinL0fSVk0YUX3SAtNLGOHkoC0nejKqx6aT05bMU5gWTNZN46g3PkLf2ODSEwR2/XhQ1D Lq/HEfUVeiJ3MyC6jn1q4DgYRGfeWMgSgDFozTYZ9tsSw1czNpEuLFpvFoDIYejMz9kEMd JcqKeVukYvDKQteXoO8nX1cjzdalzyo5ud10miE8OSOmfoH+XQwsDCfNYFfWdyCjs21oEH u0LLcTCnDViZ8Gd968eJF2ZyT2WMA78W0BmfhzR8QnOP6ILfAiZ/fmCHj5w/lw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=univ-nantes.fr header.s=mailv2 header.b=OmQ0E68z; dkim=fail ("headers rsa verify failed") header.d=univ-nantes.fr header.s=mailv2 header.b=OmQ0E68z; dmarc=fail reason="SPF not aligned (relaxed)" header.from=univ-nantes.fr (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qgp8J-0004SH-Ap; Thu, 14 Sep 2023 12:23:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qgp8H-0004LO-Gl for bug-guix@gnu.org; Thu, 14 Sep 2023 12:23:57 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qgp8G-0006u0-Na for bug-guix@gnu.org; Thu, 14 Sep 2023 12:23:57 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qgp8M-0007zp-9v for bug-guix@gnu.org; Thu, 14 Sep 2023 12:24:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#65177: udevd error with lvm-raid array leading to race condition with luks Resent-From: Yann Dupont Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 14 Sep 2023 16:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65177 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 65177@debbugs.gnu.org Received: via spool by 65177-submit@debbugs.gnu.org id=B65177.169470860830689 (code B ref 65177); Thu, 14 Sep 2023 16:24:02 +0000 Received: (at 65177) by debbugs.gnu.org; 14 Sep 2023 16:23:28 +0000 Received: from localhost ([127.0.0.1]:40964 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgp7n-0007yv-Ie for submit@debbugs.gnu.org; Thu, 14 Sep 2023 12:23:28 -0400 Received: from smtptls1-loi.cpub.univ-nantes.fr ([2001:660:7220:385:193:52:103:112]:58292 helo=smtp-tls.univ-nantes.fr) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgp7j-0007ya-EM for 65177@debbugs.gnu.org; Thu, 14 Sep 2023 12:23:26 -0400 Received: from localhost (localhost [127.0.0.1]) by smtp-tls.univ-nantes.fr (Postfix) with ESMTP id 682D459E for <65177@debbugs.gnu.org>; Thu, 14 Sep 2023 18:23:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=univ-nantes.fr; s=mailv2; t=1694708589; bh=d3bHCp0nsxEF09Zd/7SvaQiNQw+KY/SS0dQg2qSRu5A=; h=Date:Subject:From:To:References:In-Reply-To:From; b=OmQ0E68zhrmUvfNVqkRIE6jt2a924O8nmsKKjhYaIbSK6rnyD8xK3DpWdNHGvPGgB HjIS5omxD+tZzzxy9h6wwgkpX5n7T0sHixqJgUTcIyL3LImoOnFb+0YFh3iZT20GOp ktjlRICnqO8wbbK4UrgaLCTubNwKgHSFkAJwI1QJ4y+JUNDMFU1Y1kK/SkVFNoQqOH +XX5R3EZee6K1B6SxBc53AIf5VkYWitaTONtCnf7y+b3s7nxOJmeAs43h5Xg7yDLLl be7wX6tjo4OsuIT487ckVIA1yJaFVeXwXg8kkRZuWK2Y3vRtHrM6qT1PiBPuSrAAjb sW5q6VrXG95dg== X-Virus-Scanned: Debian amavisd-new at smtptls1-lmb.cpub.univ-nantes.fr Received: from smtp-tls.univ-nantes.fr ([127.0.0.1]) by localhost (smtptls1-loi.cpub.univ-nantes.fr [127.0.0.1]) (amavisd-new, port 10024) with LMTP id K0dhP2rOfBtR for <65177@debbugs.gnu.org>; Thu, 14 Sep 2023 18:23:09 +0200 (CEST) Received: from [IPV6:2a01:e0a:2c6:9282:cbc6:de2d:73ed:1ac2] (unknown [IPv6:2a01:e0a:2c6:9282:cbc6:de2d:73ed:1ac2]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-tls.univ-nantes.fr (Postfix) with ESMTPSA id 39D002C6 for <65177@debbugs.gnu.org>; Thu, 14 Sep 2023 18:23:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=univ-nantes.fr; s=mailv2; t=1694708589; bh=d3bHCp0nsxEF09Zd/7SvaQiNQw+KY/SS0dQg2qSRu5A=; h=Date:Subject:From:To:References:In-Reply-To:From; b=OmQ0E68zhrmUvfNVqkRIE6jt2a924O8nmsKKjhYaIbSK6rnyD8xK3DpWdNHGvPGgB HjIS5omxD+tZzzxy9h6wwgkpX5n7T0sHixqJgUTcIyL3LImoOnFb+0YFh3iZT20GOp ktjlRICnqO8wbbK4UrgaLCTubNwKgHSFkAJwI1QJ4y+JUNDMFU1Y1kK/SkVFNoQqOH +XX5R3EZee6K1B6SxBc53AIf5VkYWitaTONtCnf7y+b3s7nxOJmeAs43h5Xg7yDLLl be7wX6tjo4OsuIT487ckVIA1yJaFVeXwXg8kkRZuWK2Y3vRtHrM6qT1PiBPuSrAAjb sW5q6VrXG95dg== Content-Type: multipart/alternative; boundary="------------33GaEGhdQdo1gs91wkcBXaQG" Message-ID: <4b4bd749-fa4d-f4ea-742d-175d3da3822c@univ-nantes.fr> Date: Thu, 14 Sep 2023 18:23:08 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Content-Language: fr From: Yann Dupont References: <9b755986-a86d-dfa1-f497-1d4b1d37bb5b@univ-nantes.fr> In-Reply-To: <9b755986-a86d-dfa1-f497-1d4b1d37bb5b@univ-nantes.fr> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: 5.72 X-Spam-Score: 5.72 X-Migadu-Queue-Id: A984B541D7 X-Migadu-Scanner: mx0.migadu.com X-TUID: h6kl8Ze1/Y0k This is a multi-part message in MIME format. --------------33GaEGhdQdo1gs91wkcBXaQG Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi, as suggested by Josselin, I tested the following patch and it seems to do the job here. Be careful, I'm not an udev or lvm2 specialist at all and basically, I don't really know if what I did is the right way to do it. All I can say is that the VMs now boot. Cheers, diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 91109c41d9..28b3c1e0bf 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -4421,6 +4421,7 @@ (define-public lvm2                (sha256                 (base32 "0z6w6bknhwh1n3qfkb5ij6x57q3wjf28lq3l8kh7rkhsplinjnjc")) +              (patches (search-patches "lvm2-no-systemd.patch"))                (modules '((guix build utils)))                (snippet                 '(begin diff --git a/gnu/packages/patches/lvm2-no-systemd.patch b/gnu/packages/patches/lvm2-no-systemd.patch new file mode 100644 index 0000000000..7e8a37abcc --- /dev/null +++ b/gnu/packages/patches/lvm2-no-systemd.patch @@ -0,0 +1,13 @@ +diff --git a/udev/69-dm-lvm.rules.in b/udev/69-dm-lvm.rules.in +index ff1568145..8879a2ef9 100644 +--- a/udev/69-dm-lvm.rules.in ++++ b/udev/69-dm-lvm.rules.in +@@ -76,7 +76,7 @@ LABEL="lvm_scan" + # it's better suited to appearing in the journal. + + IMPORT{program}="(LVM_EXEC)/lvm pvscan --cache --listvg --checkcomplete --vgonline --autoactivation event --udevoutput --journal=output $env{DEVNAME}" +-ENV{LVM_VG_NAME_COMPLETE}=="?*", RUN+="(SYSTEMDRUN) --no-block --property DefaultDependencies=no --unit lvm-activate-$env{LVM_VG_NAME_COMPLETE} (LVM_EXEC)/lvm vgchange -aay --autoactivation event $env{LVM_VG_NAME_COMPLETE}" ++ENV{LVM_VG_NAME_COMPLETE}=="?*", RUN+="(LVM_EXEC)/lvm vgchange -aay --autoactivation event $env{LVM_VG_NAME_COMPLETE}" + GOTO="lvm_end" + + LABEL="lvm_end" --------------33GaEGhdQdo1gs91wkcBXaQG Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

Hi, as suggested by Josselin, I tested the following patch and it seems to do the job here.


Be careful, I'm not an udev or lvm2 specialist at all and basically, I don't really know if what I did is the right way to do it.


All I can say is that the VMs now boot.


Cheers,



diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 91109c41d9..28b3c1e0bf 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -4421,6 +4421,7 @@ (define-public lvm2
               (sha256
                (base32
                 "0z6w6bknhwh1n3qfkb5ij6x57q3wjf28lq3l8kh7rkhsplinjnjc"))
+              (patches (search-patches "lvm2-no-systemd.patch"))
               (modules '((guix build utils)))
               (snippet
                '(begin
diff --git a/gnu/packages/patches/lvm2-no-systemd.patch b/gnu/packages/patches/lvm2-no-systemd.patch
new file mode 100644
index 0000000000..7e8a37abcc
--- /dev/null
+++ b/gnu/packages/patches/lvm2-no-systemd.patch
@@ -0,0 +1,13 @@
+diff --git a/udev/69-dm-lvm.rules.in b/udev/69-dm-lvm.rules.in
+index ff1568145..8879a2ef9 100644
+--- a/udev/69-dm-lvm.rules.in
++++ b/udev/69-dm-lvm.rules.in
+@@ -76,7 +76,7 @@ LABEL="lvm_scan"
+ # it's better suited to appearing in the journal.
+
+ IMPORT{program}="(LVM_EXEC)/lvm pvscan --cache --listvg --checkcomplete --vgonline --autoactivation event --udevoutput --journal=output $env{DEVNAME}"
+-ENV{LVM_VG_NAME_COMPLETE}=="?*", RUN+="(SYSTEMDRUN) --no-block --property DefaultDependencies=no --unit lvm-activate-$env{LVM_VG_NAME_COMPLETE} (LVM_EXEC)/lvm vgchange -aay --autoactivation event $env{LVM_VG_NAME_COMPLETE}"
++ENV{LVM_VG_NAME_COMPLETE}=="?*", RUN+="(LVM_EXEC)/lvm vgchange -aay --autoactivation event $env{LVM_VG_NAME_COMPLETE}"
+ GOTO="lvm_end"
+
+ LABEL="lvm_end"


--------------33GaEGhdQdo1gs91wkcBXaQG--