52b84b
From 91dddaafe0b6fcc9c0a57d2feef599b82ce2a146 Mon Sep 17 00:00:00 2001
52b84b
From: =?UTF-8?q?Michal=20Sekleta=CC=81r?= <msekleta@redhat.com>
52b84b
Date: Thu, 26 Mar 2020 13:34:20 +0100
52b84b
Subject: [PATCH] device: make sure we emit PropertiesChanged signal once we
52b84b
 set sysfs
52b84b
52b84b
(cherry picked from commit 7c4d139485139eae95b17a1d54cb51ae958abd70)
52b84b
52b84b
Related: #1793533
52b84b
---
52b84b
 src/core/device.c | 2 ++
52b84b
 1 file changed, 2 insertions(+)
52b84b
52b84b
diff --git a/src/core/device.c b/src/core/device.c
52b84b
index a2d00a0fbe..21fe3802bd 100644
52b84b
--- a/src/core/device.c
52b84b
+++ b/src/core/device.c
52b84b
@@ -81,6 +81,8 @@ static int device_set_sysfs(Device *d, const char *sysfs) {
52b84b
         }
52b84b
 
52b84b
         d->sysfs = TAKE_PTR(copy);
52b84b
+        unit_add_to_dbus_queue(UNIT(d));
52b84b
+
52b84b
         return 0;
52b84b
 }
52b84b