From: Yu Watanabe Date: Thu, 7 Mar 2019 03:54:58 +0000 (+0900) Subject: core/device: make devices with ID_RENAMING= property be considered not ready X-Git-Tag: v242-rc1~183^2~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2efa43dc4a0ddc9409c510e54a0f6f58670c720d;p=thirdparty%2Fsystemd.git core/device: make devices with ID_RENAMING= property be considered not ready --- diff --git a/src/core/device.c b/src/core/device.c index b006add4051..a979caf21ce 100644 --- a/src/core/device.c +++ b/src/core/device.c @@ -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;