Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 947185 - sys-kernel/genkernel-4.3.16-r2: lvm2 built by genkernel includes udev rule that causes cryptsetup stuck on systems without systemd
Summary: sys-kernel/genkernel-4.3.16-r2: lvm2 built by genkernel includes udev rule th...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2024-12-29 21:08 UTC by Dmitriy Baranov
Modified: 2025-01-01 18:11 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
lvm2-2.03.20-dm_lvm_rules_no_systemd_v2.patch (lvm2-2.03.20-dm_lvm_rules_no_systemd_v2.patch,686 bytes, patch)
2024-12-29 21:12 UTC, Dmitriy Baranov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitriy Baranov 2024-12-29 21:08:20 UTC
genkernel gets stuck on the following configuration:
/etc/genkernel.conf:
LVM="yes"
LUKS="yes"
sys-kernel/genkernel-4.3.16-r2::gentoo  USE="firmware (-ibm) -systemd".
cryptsetup is constantly stucked with updated udev rule.

Reproducible: Always
Comment 1 Dmitriy Baranov 2024-12-29 21:12:02 UTC
Created attachment 915498 [details, diff]
lvm2-2.03.20-dm_lvm_rules_no_systemd_v2.patch

Adding an option --noudevsync resolves the problem.
Related bug: https://bugs.gentoo.org/944499
Comment 2 Larry the Git Cow gentoo-dev 2024-12-30 17:05:03 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d4ab3bc5f20c6e5940e5677c0ee5f5ae1ef90366

commit d4ab3bc5f20c6e5940e5677c0ee5f5ae1ef90366
Author:     Ben Kohler <bkohler@gentoo.org>
AuthorDate: 2024-12-30 16:13:15 +0000
Commit:     Ben Kohler <bkohler@gentoo.org>
CommitDate: 2024-12-30 16:17:42 +0000

    sys-kernel/genkernel: adjust lvm2 "no systemd" patch
    
    Bug: https://bugs.gentoo.org/947185
    Bug: https://bugs.gentoo.org/944499
    Signed-off-by: Ben Kohler <bkohler@gentoo.org>

 .../lvm2-2.03.20-dm_lvm_rules_no_systemd_v2.patch  |  11 +
 sys-kernel/genkernel/genkernel-4.3.16-r3.ebuild    | 291 +++++++++++++++++++++
 2 files changed, 302 insertions(+)
Comment 3 Dmitriy Baranov 2024-12-31 16:46:56 UTC
Perhaps these changes should be added to the sys-fs/lvm2. I have encountered problems when partitioning a disk device based on a luks2+lvm2.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-12-31 16:47:28 UTC
(In reply to Dmitriy Baranov from comment #3)
> Perhaps these changes should be added to the sys-fs/lvm2. I have encountered
> problems when partitioning a disk device based on a luks2+lvm2.

Can you file another bug for that? Thanks.
Comment 5 Dmitriy Baranov 2025-01-01 17:55:00 UTC
(In reply to Sam James from comment #4)
> (In reply to Dmitriy Baranov from comment #3)
> > Perhaps these changes should be added to the sys-fs/lvm2. I have encountered
> > problems when partitioning a disk device based on a luks2+lvm2.
> 
> Can you file another bug for that? Thanks.

https://bugs.gentoo.org/947314