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 <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
James Valleroy 2023-04-07 11:00:22 -04:00
parent 4f0bb925c7
commit ee4c9db615
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -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():