Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 433607 - >=sys-apps/systemd-182 should install var-run.mount and var-lock.mount
Summary: >=sys-apps/systemd-182 should install var-run.mount and var-lock.mount
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo systemd Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-01 07:35 UTC by Canek Peláez Valdés
Modified: 2012-09-08 21:12 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Canek Peláez Valdés 2012-09-01 07:35:50 UTC
In commit 55d029addf7d97b15faacea597a4ff65542aaf0e, systemd removed the service files var-run.mount and var-lock.mount:

"units: get rid of var-run.mount and var-lock.mount
    
Since a number of distribitions don't need this compat glue anymore drop
it from systemd upstream. Distributions which still haven't converted
to /run can steal these unit files from the git history if they need to."

Not all packages in Gentoo are using /run directly, so problems may arise when they use /var/run, and this is not a bind mount of (or link to) /run. For example, avahi will fail execution if /var/run/avahi-daemon/pid exists. It seems these files are not erased from a regular directory, at least in several systems of mine. In a tmpfs (which is the case of /var/run), this problem doesn't exists. A similar problem can occur with /var/lock, but I haven't seen it.

I didn't notice this problem until I upgraded to systemd-188 a couple of weeks ago, since systemd-44 provides var-run.mount and var-lock.mount.

The unit files are in the git history of systemd, but I can attach them if necessary.

Reproducible: Always
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-09-03 21:52:04 UTC
Thanks for the report and the exact commit ;). -189-r1 adds those two files from 55d029addf7^.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-09-08 20:38:37 UTC
Well, it now got to me... should I have enabled them implicitly? :P
Comment 3 Canek Peláez Valdés 2012-09-08 20:49:50 UTC
systemd versions prior to 182 enabled the unit files by default (installing the links in /etc/systemd/system; the units don't have an [Install] section, so you can't enable them with systemctl).

I suppose the correct solution is to enable them by default; I didn't realize this wasn't the casem since I had put the unit files in /etc/systemd/system and enabled them by hand.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-09-08 21:12:18 UTC
Fixed in -r2 now.