Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 513330 - sys-apps/systemd-214 - systemd-tmpfiles[1807]: /var/run is not the right symlink.
Summary: sys-apps/systemd-214 - systemd-tmpfiles[1807]: /var/run is not the right syml...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo systemd Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-15 11:04 UTC by tman
Modified: 2014-07-06 18:42 UTC (History)
2 users (show)

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 tman 2014-06-15 11:04:02 UTC
Jun 15 12:51:29 TuX kernel: Console: switching to colour dummy device 80x25
Jun 15 12:51:29 TuX kernel: ACPI: Battery Slot [BAT] (battery present)
Jun 15 12:51:29 TuX kernel: i915 0000:00:02.0: irq 41 for MSI/MSI-X
Jun 15 12:51:29 TuX kernel: [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
Jun 15 12:51:29 TuX kernel: [drm] Driver supports precise vblank timestamp query.
Jun 15 12:51:29 TuX kernel: vgaarb: device changed decodes: PCI:0000:00:02.0,olddecodes=io+mem,decodes=none:owns=none
Jun 15 12:51:29 TuX kernel: fbcon: inteldrmfb (fb0) is primary device
Jun 15 12:51:29 TuX kernel: [drm:cpt_serr_int_handler] *ERROR* PCH transcoder A FIFO underrun
Jun 15 12:51:29 TuX kernel: tsc: Refined TSC clocksource calibration: 2693.879 MHz
Jun 15 12:51:29 TuX kernel: Console: switching to colour frame buffer device 240x67
Jun 15 12:51:29 TuX kernel: i915 0000:00:02.0: fb0: inteldrmfb frame buffer device




un 15 12:51:31 TuX systemd[1]: Starting Activation of LVM2 logical volumes...
Jun 15 12:51:32 TuX lvm[1803]: No volume groups found
Jun 15 12:51:32 TuX systemd[1]: Started Activation of LVM2 logical volumes.
Jun 15 12:51:32 TuX systemd[1]: Starting Activation of LVM2 logical volumes...


Jun 15 12:51:32 TuX systemd[1]: Starting Local File Systems.
Jun 15 12:51:32 TuX systemd[1]: Reached target Local File Systems.
Jun 15 12:51:32 TuX systemd[1]: Starting Create Volatile Files and Directories...
Jun 15 12:51:32 TuX systemd-tmpfiles[1807]: /var/run is not the right symlink.
Jun 15 12:51:32 TuX systemd[1]: Started Create Volatile Files and Directories.
Jun 15 12:51:32 TuX systemd[1]: Starting Update UTMP about System Boot/Shutdown.

Reproducible: Always




Portage 2.2.10 (default/linux/amd64/13.0/desktop, gcc-4.8.2, glibc-2.19-r1, 3.15.0-gentoo-r1 x86_64)
=================================================================
System uname: Linux-3.15.0-gentoo-r1-x86_64-Intel-R-_Core-TM-_i7-3740QM_CPU_@_2.70GHz-with-gentoo-2.2
KiB Mem:    24627364 total,  23376984 free
KiB Swap:   25598972 total,  25598972 free
Timestamp of tree: Sun, 15 Jun 2014 09:00:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.2_p47
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.6-r1, 3.3.5, 3.4.0
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.14.1
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.15 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo bitcoin steam-overlay bumblebee printer-drivers lokal
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=corei7 -O2 -pipe"
DISTDIR="/mnt/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/mnt/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/mnt/portage"
Comment 1 Mike Gilbert gentoo-dev 2014-06-15 14:23:18 UTC
From NEWS:

        * A tmpfiles snippet to recreate the most basic structure in
          /var has been added. This is enough to create the /var/run →
          /run symlink and create a couple of structural
          directories. This allows systems to boot up with an empty or
          volatile /var. Of course, while with this change the core OS
          now is capable with dealing with a volatile /var not all
          user services are ready for it. However, we hope that sooner
          or later many service daemons will be changed upstream so
          that they are able to automatically create their necessary
          directories in /var at boot, should they be missing. This is
          the first step to allow state-less systems that only require
          the vendor image for /usr to boot.

The particular tmpfiles entry from /usr/lib/tmpfiles.d/var.conf:

L /var/run - - - - ../run

So, the preferred configuration is having /var/run be a symlink to ../run. As a fallback, gentoo-systemd-integration installs a mount unit which bind-mounts /run on top of /var/run.

Maybe we should add an ewarn for people to boot into a livecd and replace /var/run with a symlink? Or is there a more automatic way to do that migration with systemd?
Comment 2 Mike Gilbert gentoo-dev 2014-06-15 14:56:05 UTC
tman: Am I correct in assuming that /var/run is a symlink to /run on your system?

I think this particular message pops up because systemd-tmpfiles compares the strings "/run" to "../run" and finds that they are not equal, although they technically point at the same place.
Comment 3 tman 2014-06-15 15:09:44 UTC
(In reply to Mike Gilbert from comment #2)
> tman: Am I correct in assuming that /var/run is a symlink to /run on your
> system?
> 
> I think this particular message pops up because systemd-tmpfiles compares
> the strings "/run" to "../run" and finds that they are not equal, although
> they technically point at the same place.


seems to be u guess right.

# ls -la /var/run
lrwxrwxrwx 1 root root 4 31. Okt 2013  /var/run -> /run


but what should i do to solve this problem?
Comment 4 Mike Gilbert gentoo-dev 2014-06-15 15:23:54 UTC
(In reply to tman from comment #3)
> but what should i do to solve this problem?

The message is pretty harmless, so feel free to just ignore it.

If it really bothers you, do this:

ln -snf ../run /var/run
Comment 5 tman 2014-06-15 15:30:24 UTC
what about the other error which systemd-214 brought:

Jun 15 17:27:51 TuX kernel: [drm:cpt_serr_int_handler] *ERROR* PCH transcoder A FIFO underrun



??
Comment 6 Mike Gilbert gentoo-dev 2014-06-15 15:38:17 UTC
(In reply to tman from comment #5)
> what about the other error which systemd-214 brought:
> 
> Jun 15 17:27:51 TuX kernel: [drm:cpt_serr_int_handler] *ERROR* PCH
> transcoder A FIFO underrun
> 

I doubt systemd is triggering that. Are you certain you don't get that with the previous version?
Comment 7 tman 2014-06-15 15:45:42 UTC
i am seriuoly dont knew because i have mad emerge -uDN world and afterwards. i got this.
Comment 8 Mike Gilbert gentoo-dev 2014-06-15 15:49:02 UTC
(In reply to tman from comment #7)
> i am seriuoly dont knew because i have mad emerge -uDN world and afterwards.
> i got this.

Please don't report such things as bugs then.
Comment 9 Mike Gilbert gentoo-dev 2014-07-06 18:42:07 UTC
This has been resolved in systemd-215, which now outputs the symlink mismatch as a debug message instead of an error.