Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

lvm2 initramfs activation conflicts with udev and systemd

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
2 posts • Page 1 of 1
Author
Message
ololoshwin
n00b
n00b
Posts: 17
Joined: Thu Nov 25, 2021 8:13 am

lvm2 initramfs activation conflicts with udev and systemd

  • Quote

Post by ololoshwin » Fri Mar 07, 2025 2:41 pm

Hello
I have custom initramfs to activate lvm volume for roof filesystem.

Everything works except warning in systemct:
dev-mapper-sys-root.device loaded activating tentative /dev/mapper/sys-root

This is because udev marked this device as not ready for systemd:
# udevadm info /dev/mapper/sys-root
…
E: DM_UDEV_DISABLE_SUBSYSTEM_RULES_FLAG=1
E: DM_UDEV_DISABLE_DISK_RULES_FLAG=1
E: DM_UDEV_DISABLE_OTHER_RULES_FLAG=1
E: SYSTEMD_READY=0
E: TAGS=:systemd:
E: CURRENT_TAGS=:systemd:



How can I pass control over device to the udevd/systemd ?
Top
zen_desu
Guru
Guru
Posts: 503
Joined: Fri Oct 25, 2024 3:14 pm
Location: your area

  • Quote

Post by zen_desu » Fri Mar 07, 2025 7:43 pm

https://github.com/desultory/ugrd/blob/ ... dev.py#L22


I'm not claiming this is perfect, and would appreciate any feedback on how this may be incorrect, but this is what I do in ugrd and it seems to work well enough.

Code: Select all

    for dm in /sys/block/dm-*; do
        if [ ! -e "${dm}/uevent" ]; then
            continue
        fi
        source "${dm}/uevent"
        einfo "Faking udev for: ${DEVNAME}"
        udev_db_file="/run/udev/data/b${MAJOR}:${MINOR}"
        printf 'E:DM_UDEV_PRIMARY_SOURCE_FLAG=1\n' > "${udev_db_file}"
    done
More info at: https://github.com/desultory/ugrd/issues/181
https://github.com/lvmteam/lvm2/issues/ ... 2268468603
µgRD dev
Wiki writer
Top
Post Reply

2 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic