unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Yann Dupont <Yann.Dupont@univ-nantes.fr>
To: 65177@debbugs.gnu.org
Subject: bug#65177: udevd error with lvm-raid array leading to race condition with luks
Date: Thu, 14 Sep 2023 18:23:08 +0200	[thread overview]
Message-ID: <4b4bd749-fa4d-f4ea-742d-175d3da3822c@univ-nantes.fr> (raw)
In-Reply-To: <9b755986-a86d-dfa1-f497-1d4b1d37bb5b@univ-nantes.fr>

[-- Attachment #1: Type: text/plain, Size: 1860 bytes --]

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"


[-- Attachment #2: Type: text/html, Size: 4177 bytes --]

  reply	other threads:[~2023-09-14 16:24 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-09 10:25 bug#65177: udevd error with lvm-raid array leading to race condition with luks Adrien 'neox' Bourmault
2023-08-10  8:02 ` Josselin Poiret via Bug reports for GNU Guix
2023-09-14  9:25 ` Yann Dupont
2023-09-14 16:23   ` Yann Dupont [this message]
2023-09-25  7:35     ` Simon Tournier
2023-10-17  9:00       ` Simon Tournier
2023-10-31  8:59         ` Simon Tournier
2023-10-31 18:38 ` bug#65177: udevd error with lvm-raid array leading to race Tomas Volf
2023-11-02 12:16   ` Simon Tournier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4b4bd749-fa4d-f4ea-742d-175d3da3822c@univ-nantes.fr \
    --to=yann.dupont@univ-nantes.fr \
    --cc=65177@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).