FS#50629 - [lockdev] Missing /var/lock/lockdev

Attached to Project: Community Packages
Opened by Karel Kočí (cynerd) - Friday, 02 September 2016, 08:44 GMT
Last edited by Balló György (City-busz) - Wednesday, 07 December 2016, 17:48 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Lukas Fleischer (lfleischer)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

On newly installed system "/var/lock/lockdev" is missing. It was removed from
"/usr/lib/tmpfiles.d/legacy.conf" by decision of systemd developers. This makes
this package broken. I am not sure what solution should be, if revert solution
from  FS#31614 , or patch it so it creates directory if missing.

Steps to reproduce:
Just install archlinux, compile some test program that tries to lock some dev
file and run it. It fails with error "No such file or directory".
This task depends upon

Closed by  Balló György (City-busz)
Wednesday, 07 December 2016, 17:48 GMT
Reason for closing:  Fixed
Additional comments about closing:  lockdev directory is created again in lockdev-1.0.3_1.6-3
Comment by Balló György (City-busz) - Friday, 02 September 2016, 09:54 GMT
We can use sysusers.d and tmpfiles.d configuration files to create the /var/lock/lockdev directory again. See my solution for gnokii:
https://git.archlinux.org/svntogit/community.git/commit/trunk?h=packages/gnokii&id=b48645c3ad22cd1a6e512d65263644a645b4866a

Loading...