From ee4c9db6158ae8675a82a44ab217d23bce2dbb77 Mon Sep 17 00:00:00 2001 From: James Valleroy Date: Fri, 7 Apr 2023 11:00:22 -0400 Subject: [PATCH] datetime: Use unique component ID for related daemon The original change worked ok in a container, but failed in virtualbox. This was due to the component being replaced by the Daemon component that had the same ID, on systems where time is managed. Signed-off-by: James Valleroy Reviewed-by: Sunil Mohan Adapa --- plinth/modules/datetime/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plinth/modules/datetime/__init__.py b/plinth/modules/datetime/__init__.py index 229e47fae..209154ba4 100644 --- a/plinth/modules/datetime/__init__.py +++ b/plinth/modules/datetime/__init__.py @@ -75,7 +75,8 @@ class DateTimeApp(app_module.App): packages = Packages('packages-datetime', ['systemd-timesyncd']) self.add(packages) - daemon = RelatedDaemon('daemon-datetime', 'systemd-timedated') + daemon = RelatedDaemon('daemon-datetime-timedated', + 'systemd-timedated') self.add(daemon) if self._is_time_managed():