From 2efa43dc4a0ddc9409c510e54a0f6f58670c720d Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Thu, 7 Mar 2019 12:54:58 +0900 Subject: [PATCH] core/device: make devices with ID_RENAMING= property be considered not ready --- src/core/device.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.47.3