richardphibel / rpms / systemd

Forked from rpms/systemd 2 years ago
Clone
149adf
From c7324938cb6df93ac5da7d6dd281be8d1986d6f1 Mon Sep 17 00:00:00 2001
149adf
From: Michal Sekletar <msekleta@redhat.com>
149adf
Date: Fri, 24 Jul 2020 17:40:47 +0200
149adf
Subject: [PATCH] device: make sure we emit PropertiesChanged signal once we
149adf
 set sysfs
149adf
149adf
(cherry-picked from commit 7c4d139485139eae95b17a1d54cb51ae958abd70)
149adf
149adf
Related: #1793527
149adf
---
149adf
 src/core/device.c | 1 +
149adf
 1 file changed, 1 insertion(+)
149adf
149adf
diff --git a/src/core/device.c b/src/core/device.c
149adf
index 2afa19f2b4..23c8ee356f 100644
149adf
--- a/src/core/device.c
149adf
+++ b/src/core/device.c
149adf
@@ -97,6 +97,7 @@ static int device_set_sysfs(Device *d, const char *sysfs) {
149adf
         }
149adf
 
149adf
         d->sysfs = copy;
149adf
+        unit_add_to_dbus_queue(UNIT(d));
149adf
 
149adf
         return 0;
149adf
 }