]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core/device: make devices with ID_RENAMING= property be considered not ready
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 7 Mar 2019 03:54:58 +0000 (12:54 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 7 Mar 2019 03:54:58 +0000 (12:54 +0900)
src/core/device.c

index b006add40513e7c3e19d1192468a6a44af5c0e1f..a979caf21ce5b289393dc098bf61175f990c26ce 100644 (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;