Bug#782377: systemd: hwclock-save.service should not be run inside containers

Christian Seiler christian at iwakd.de
Sat Apr 11 15:44:05 BST 2015


On 04/11/2015 03:28 PM, Michael Biebl wrote:
> Am 11.04.2015 um 12:14 schrieb Christian Seiler:
>> Package: systemd
>> Version: 215-15
>> Severity: minor
>> Tags: patch
>>
>> Dear Maintainers,
>>
>> with 215-13, hwclock-save.service was added to sync the system clock
>> with the hardware clock on shutdown. This will fail in containers which
>> don't have the appropriate privileges (which is annoying, but not
>> really problematic, since shutdown proceeds anyway), and in privileged
>> containers this will needlessly sync the clock on container shutdown
>> (although that is probably harmless).
>>
>> Please add
>> ConditionVirtualization=!container
>> to the unit file to disable the service in containers.
>
> Makes sense.
>
> Please consider sending a proper git formatted patch, so the change is
> properly credited to you.

Attached.

Thanks,
Christian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Don-t-run-hwclock-save.service-in-containers.patch
Type: text/x-diff
Size: 753 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20150411/a064733a/attachment-0002.patch>


More information about the Pkg-systemd-maintainers mailing list