Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#30889 - [filesystem] symlink /var/run -> ../run can point to a wrong place if /var is symlink itself

Attached to Project: Arch Linux
Opened by Vadim Ushakov (geekless) - Saturday, 28 July 2012, 07:48 GMT
Last edited by Dave Reisner (falconindy) - Saturday, 28 July 2012, 20:42 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Symlinks /var/run -> ../run and /var/lock -> ../run/lock can point to a wrong place if /var is itself symlink to a non toplevel directory.

Steps to reproduce:
* Move /var content to any non toplevel directory. (/mountpoints/vars/archlinux in my case)
* Create symlink /var -> mountpoints/vars/archlinux
* Now path /var/run resolves into /mountpoints/vars/run, not into /run.

That issue can be fixed by using absolute path names in the symlinks: /var/run -> /run, /var/lock -> /run/lock
This task depends upon

Closed by  Dave Reisner (falconindy)
Saturday, 28 July 2012, 20:42 GMT
Reason for closing:  Won't fix
Additional comments about closing:  Relative paths are intended, and correct. Your usage is broken, and necessitates a bind mount.
Comment by Allan McRae (Allan) - Saturday, 28 July 2012, 08:09 GMT
Using absolute paths will break using "pacman -r /mnt -S <pkgs>" to rescue your system a package has a file in /var/run.
Comment by Pierre Schmitz (Pierre) - Saturday, 28 July 2012, 09:27 GMT
Do not move /var (or any other system directory) by creating a symlink. Use mount or a bind mount instead.
Comment by Vadim Ushakov (geekless) - Saturday, 28 July 2012, 10:58 GMT
> Using absolute paths will break using "pacman -r /mnt -S <pkgs>" to rescue your system a package has a file in /var/run.

Uh... Since /var/run contains only non-persistent data, having a file from /var/run in a package is as nonsence as having a packaged file in /tmp, isn't it?
Comment by Matthias Dienstbier (fs4000) - Saturday, 28 July 2012, 20:31 GMT
Then Fedora would also be wrong. I proposed relative symlinks in  FS#27892 .

Loading...