naccyde / rpms / systemd

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