From: Simon Tournier <zimon.toutoune@gmail.com>
To: Yann Dupont <Yann.Dupont@univ-nantes.fr>
Cc: 65177@debbugs.gnu.org, Josselin Poiret <dev@jpoiret.xyz>,
Tobias Geerinckx-Rice <me@tobias.gr>
Subject: bug#65177: udevd error with lvm-raid array leading to race condition with luks
Date: Mon, 25 Sep 2023 09:35:54 +0200 [thread overview]
Message-ID: <87pm267lid.fsf@gmail.com> (raw)
In-Reply-To: <4b4bd749-fa4d-f4ea-742d-175d3da3822c@univ-nantes.fr> (Yann Dupont's message of "Thu, 14 Sep 2023 18:23:08 +0200")
Hi,
On Thu, 14 Sep 2023 at 18:23, Yann Dupont <Yann.Dupont@univ-nantes.fr> wrote:
> All I can say is that the VMs now boot.
WDYT about this patch?
> 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"
Josselin, is it what you had in mind?
Cheers,
simon
next prev parent reply other threads:[~2023-09-25 8:43 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
2023-09-25 7:35 ` Simon Tournier [this message]
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=87pm267lid.fsf@gmail.com \
--to=zimon.toutoune@gmail.com \
--cc=65177@debbugs.gnu.org \
--cc=Yann.Dupont@univ-nantes.fr \
--cc=dev@jpoiret.xyz \
--cc=me@tobias.gr \
/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).