Skip to content

During switchroot, devices transition plugged -> dead -> plugged #11997

@owtaylor

Description

@owtaylor

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=1M on the kernel command line
  • Search for plugged -> dead in 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    pid1regression ⚠️A bug in something that used to work correctly and broke through some recent commit

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions