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

Christian Seiler christian at iwakd.de
Sat Apr 11 11:14:09 BST 2015


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.

Thanks,
Christian

-- Package-specific info:

-- System Information:
Debian Release: 8.0
   APT prefers testing-updates
   APT policy: (500, 'testing-updates'), (500, 'testing'), (100, 
'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages systemd depends on:
ii  acl             2.2.52-2
ii  adduser         3.113+nmu3
ii  initscripts     2.88dsf-58
ii  libacl1         2.2.52-2
ii  libaudit1       1:2.4-1+b1
ii  libblkid1       2.25.2-6
ii  libc6           2.19-17
ii  libcap2         1:2.24-8
ii  libcap2-bin     1:2.24-8
ii  libcryptsetup4  2:1.6.6-5
ii  libgcrypt20     1.6.3-2
ii  libkmod2        18-3
ii  liblzma5        5.1.1alpha+20120614-2+b3
ii  libpam0g        1.1.8-3.1
ii  libselinux1     2.3-2
ii  libsystemd0     215-15
ii  mount           2.25.2-6
ii  sysv-rc         2.88dsf-58
ii  udev            215-14
ii  util-linux      2.25.2-6

Versions of packages systemd recommends:
ii  dbus            1.8.16-1
ii  libpam-systemd  215-15

Versions of packages systemd suggests:
pn  systemd-ui  <none>

-- no debconf information



More information about the Pkg-systemd-maintainers mailing list