Repository navigation
Conversation
After 1fb70e6, device enumeration on switching root triggers devices state change plugged -> dead. This is caused by the udevd database is cleared just before switching root. Let's preserve all udev database during switching root. Fixes systemd#11997.
|
Of the three PRs, this one seems the most attractive to me. I think if we're going to do significant changes to how this subsystem operates, we might as well go for the clean option, instead of partial fixups like in the other PRs. I'm installing it on my laptop now, to test with LVM... |
|
... it turns out that this breaks LVM. On my machine, the LVM volumes which are necessary for @poettering also said:
Let's look at the different solutions. |
|
As @fbuihuu asked me about this, has anyone figured out why |
|
@mwilck so I did look at it and the problem with LVM is the following. The PV (sda2 in my case) is detected by udev in initrd. PID1 is notified and creates the relevant device unit (dev-sda2.device). Due to 69-dm-lvm-metad.rules, Now there are 2 cases:
|
Closes #11997.