-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
During switchroot, devices transition plugged -> dead -> plugged #11997
Copy link
Copy link
Closed
Labels
pid1regression ⚠️A bug in something that used to work correctly and broke through some recent commitA bug in something that used to work correctly and broke through some recent commit
Milestone
Description
systemd version the issue has been seen with
v240 and v241
Used distribution
Fedora
Unexpected behaviour you saw
With systemd 240 and 241, at switch root time, all devices change plugged -> dead -> plugged. (I tested fedora 29 + v239, v240, and v241, and it was a v239 -> v240 regression.)
In some cases, this might be mostly harmless, but see https://pagure.io/fedora-silverblue/issue/8 for a problem that it causes.
Steps to reproduce the problem
- Install Fedora 30 nightly in a VM
- Boot with
systemd.log-level=debug printk.devkmsg=on log_buf_len=1Mon the kernel command line - Search for
plugged -> deadin the logs
Notes
With some poking and debug message insertion, I determined that the initial call to device_enumerate() after re-exec is not finding any devices - which is what I think is causing the problem - I couldn't easily find the cause in the v239 ... v240 diff.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
pid1regression ⚠️A bug in something that used to work correctly and broke through some recent commitA bug in something that used to work correctly and broke through some recent commit