FS#25133 - [filesystem] prevent /var/lock from being removed

Attached to Project: Arch Linux
Opened by Florian Pritz (bluewind) - Friday, 15 July 2011, 13:40 GMT
Last edited by Tom Gundersen (tomegun) - Tuesday, 08 November 2011, 03:13 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Pierre Schmitz (Pierre)
Tom Gundersen (tomegun)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

dmraid and hylafax also contain /var/lock and pacman removes the directory (because it's empty) when you remove one of those packages. Some software depends on /var/lock being present so unexpected behaviour will occur as describe in  FS#24252  and  FS#25011 .

Adding a .keep file like in  FS#16886  seems to be the best solution.
Closed by  Tom Gundersen (tomegun)
Tuesday, 08 November 2011, 03:13 GMT
Reason for closing:  Fixed
Additional comments about closing:  Pacman 4 no longer deletes empty directories.
Comment by xduugu (xduugu) - Friday, 15 July 2011, 18:22 GMT
As far as I know ( FS#18157 ), /var/lock will be replaced by a symlink soon.
Comment by Eric Belanger (Snowman) - Saturday, 16 July 2011, 01:48 GMT
Also, there's a TODO list to remove /var/lock/* from packages:
https://www.archlinux.org/todo/70/

Once that's completed, that problem will be fixed.
Comment by Florian Pritz (bluewind) - Saturday, 16 July 2011, 08:32 GMT
Ok that TODO is the root of all evil™ because when pacman upgrade one of those packages and /var/lock becomes empty it will also remove /var/lock.

So with every package we "fix" the problem will affect more people.
Comment by Eric Belanger (Snowman) - Saturday, 16 July 2011, 08:56 GMT
I haven't thought about that. In that case, I suppose we could add a .keep file to keep the directory until the TODO is completed.
Comment by Rémy Oudompheng (remyoudompheng) - Saturday, 16 July 2011, 09:07 GMT
we already do a lot of fixture in initscripts, and could mkdir or symlink /var/lock there.
Comment by Jelle van der Waa (jelly) - Saturday, 16 July 2011, 10:01 GMT
Initscripts or filesystem, both are fine solutions , i would apply the fix for filesystem since it's has less inpact on the user.
Comment by Tom Gundersen (tomegun) - Tuesday, 08 November 2011, 01:26 GMT
Hi guys, sorry for not dealing with this. The problem is solved by pacman 4, so I'll just close this.

Loading...