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