]> git.ipfire.org Git - thirdparty/systemd.git/commit
core/device: verify device syspath on switching root 25132/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 25 Oct 2022 16:18:05 +0000 (01:18 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 26 Oct 2022 21:11:10 +0000 (06:11 +0900)
commitb6c86ae28149c4abb2f0bd6acab13153382da9e7
treee7a17de16c26e0f505044def76d0e70cc23c5a94
parent1ea74fca3a3c737f3901bc10d879b7830b3528bf
core/device: verify device syspath on switching root

Otherwise, if a device is removed while switching root, then the
corresponding .device unit will never go to inactive state.

This replaces the code dropped by cf1ac0cfe44997747b0f857a1d0b67cea1298272.

Fixes #25106.
src/core/device.c