core/device: make devices with ID_RENAMING= property be considered not ready

This commit is contained in:
Yu Watanabe 2019-03-07 12:54:58 +09:00
parent c03f9cec42
commit 2efa43dc4a
1 changed files with 4 additions and 0 deletions

View File

@ -17,6 +17,7 @@
#include "stat-util.h"
#include "string-util.h"
#include "swap.h"
#include "udev-util.h"
#include "unit-name.h"
#include "unit.h"
@ -729,6 +730,9 @@ static bool device_is_ready(sd_device *dev) {
assert(dev);
if (device_is_renaming(dev) > 0)
return false;
if (sd_device_get_property_value(dev, "SYSTEMD_READY", &ready) < 0)
return true;