e3d9376 core/device: verify device syspath on switching root

1 file Authored by Yu Watanabe a year ago, Committed by zbyszek a year ago,
    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.
    
    (cherry picked from commit b6c86ae28149c4abb2f0bd6acab13153382da9e7)
    
        
file modified
+13 -0