Bug 4628 - systemd-tmpfiles Unknown group 'lock'
: systemd-tmpfiles Unknown group 'lock'
Status: RESOLVED DUPLICATE of bug 4829
Product: Desktop Bugs
Classification: ROSA Desktop
Component: Main Packages
: Fresh
: All Linux
: High critical
: ---
Assigned To: ROSA Linux Bugs
: ROSA Linux Bugs
:
Depends on: 4829
Blocks:
  Show dependency treegraph
 
Reported: 2014-11-07 09:27 MSK by sasha
Modified: 2015-01-14 18:31 MSK (History)
2 users (show)

See Also:
RPM Package:
ISO-related:
Bad POT generating:
Upstream:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sasha 2014-11-07 09:27:34 MSK
Сразу же при установке системы не запускается systemd-tmpfiles-clean.

# systemctl status systemd-tmpfiles-clean.service -l
systemd-tmpfiles-clean.service - Cleanup of Temporary Directories
   Loaded: loaded (/lib/systemd/system/systemd-tmpfiles-clean.service; static)
   Active: failed (Result: exit-code) since Пт 2014-11-07 13:50:28 IRKT; 1h 14min ago
     Docs: man:tmpfiles.d(5)
           man:systemd-tmpfiles(8)
 Main PID: 14216 (code=exited, status=1/FAILURE)

ноя 07 13:50:27 pc_nat systemd-tmpfiles[14216]: [/usr/lib/tmpfiles.d/legacy.conf:26] Unknown group 'lock'.
ноя 07 13:50:28 pc_nat systemd[1]: systemd-tmpfiles-clean.service: main process exited, code=exited, status=1/FAILURE
ноя 07 13:50:28 pc_nat systemd[1]: Failed to start Cleanup of Temporary Directories.
ноя 07 13:50:28 pc_nat systemd[1]: Unit systemd-tmpfiles-clean.service entered failed state.

В /etc/group lock действительно отсутствует.
Comment 1 Giovanni Mariani 2014-12-29 14:18:54 MSK
This one affects also the systemd-tmpfiles-setup.service on my ROsa R5:

***********
systemd-tmpfiles-setup.service - Create Volatile Files and Directories
Loaded: loaded (/lib/systemd/system/systemd-tmpfiles-setup.service; static)
Active: failed (Result: exit-code) since Mon 2014-12-29 09:55:44 CET; 30min ago
Docs: man:tmpfiles.d(5)
      man:systemd-tmpfiles(8)
Process: 4555 ExecStart=/bin/systemd-tmpfiles --create --remove --boot --exclude-prefix=/dev (code=exited, status=1/FAILURE)
Main PID: 4555 (code=exited, status=1/FAILURE)

Dec 29 09:55:44 Rivendell systemd-tmpfiles[4555]: [/usr/lib/tmpfiles.d/legacy.conf:26] Unknown group 'lock'.
Dec 29 09:55:44 Rivendell systemd[1]: systemd-tmpfiles-setup.service: main process exited, code=exited, status=1/FAILURE
Dec 29 09:55:44 Rivendell systemd[1]: Failed to start Create Volatile Files and Directories.
Dec 29 09:55:44 Rivendell systemd[1]: Unit systemd-tmpfiles-setup.service entered failed state.
***********

According to:
http://lists.freedesktop.org/archives/systemd-devel/2011-March/001823.html
and:
https://bugzilla.redhat.com/show_bug.cgi?id=581884
(both referenced in the legacy.conf file) this issue involves a real security hole, so bumping bug importance.

We don't have a "lock" group in /etc/group: on a fresh install of Rosa R4 somehow the installation of lockdev package don't create it (this is another bug: see #4829). By executing manually the directive "groupadd -g 54 -r -f lock" (taken from the %pre section of the lockdev specfile), I got rid of all the error messages.
Comment 2 Stanislav Fomin 2015-01-14 18:31:17 MSK

*** This bug has been marked as a duplicate of bug 4829 ***