eudev/units
Kay Sievers 2b583ce657 use /run instead of /dev/.run
Instead of the /dev/.run trick we have currently implemented, we decided
to move the early-boot runtime dir to /run.

An existing /var/run directory is bind-mounted to /run. If /var/run is
already a symlink, no action is taken.

An existing /var/lock directory is bind-mounted to /run/lock.
If /var/lock is already a symlink, no action is taken.

To implement the directory vs. symlink logic, we have a:
  ConditionPathIsDirectory=
now, which is used in the mount units.

Skipped mount unit in case of symlink:
  $ systemctl status var-run.mount
  var-run.mount - Runtime Directory
    Loaded: loaded (/lib/systemd/system/var-run.mount)
    Active: inactive (dead)
            start condition failed at Fri, 25 Mar 2011 04:51:41 +0100; 6min ago
     Where: /var/run
      What: /run
    CGroup: name=systemd:/system/var-run.mount

The systemd rpm needs to make sure to add something like:
  %pre
  mkdir -p -m0755 /run >/dev/null 2>&1 || :
or it needs to be added to filesystem.rpm.

Udev -git already uses /run if that exists, and is writable at bootup.
Otherwise it falls back to the current /dev/.udev.

Dracut and plymouth need to be adopted to switch from /dev/.run to run
too.

Cheers,
Kay
2011-03-28 23:00:00 +02:00
..
fedora
frugalware
mandriva
user
.gitignore
basic.target
bluetooth.target
console-shell.service.m4
cryptsetup.target
dev-hugepages.automount
dev-hugepages.mount
dev-mqueue.automount
dev-mqueue.mount
emergency.service
emergency.target
final.target
fsck-root.service.in
fsck@.service.in
getty.target
getty@.service.m4
graphical.target
halt.service.in
halt.target
http-daemon.target
hwclock-load.service
hwclock-save.service
kexec.service.in
kexec.target
local-fs.target
mail-transfer-agent.target
Makefile
media.mount
multi-user.target
network.target
nss-lookup.target
plymouth-halt.service
plymouth-kexec.service
plymouth-poweroff.service
plymouth-quit-wait.service
plymouth-quit.service
plymouth-read-write.service
plymouth-reboot.service
plymouth-start.service
poweroff.service.in
poweroff.target
printer.target
proc-sys-fs-binfmt_misc.automount
proc-sys-fs-binfmt_misc.mount
quotacheck.service.in
quotaon.service
reboot.service.in
reboot.target
remote-fs.target.m4
remount-rootfs.service
rescue.service.m4
rescue.target
rpcbind.target
rtc-set.target
serial-getty@.service.m4
shutdown.target
sigpwr.target
smartcard.target
sockets.target
sound.target
swap.target
sys-kernel-debug.automount
sys-kernel-debug.mount
sys-kernel-security.automount
sys-kernel-security.mount
sysinit.target
syslog.socket
syslog.target
systemd-ask-password-console.path
systemd-ask-password-console.service.in
systemd-ask-password-plymouth.path
systemd-ask-password-plymouth.service.in
systemd-ask-password-wall.path
systemd-ask-password-wall.service.in
systemd-initctl.service.in
systemd-initctl.socket
systemd-kmsg-syslogd.service.in
systemd-logger.service.in
systemd-logger.socket
systemd-modules-load.service.in
systemd-random-seed-load.service.in
systemd-random-seed-save.service.in
systemd-readahead-collect.service.in
systemd-readahead-done.service.in
systemd-readahead-done.timer
systemd-readahead-replay.service.in
systemd-remount-api-vfs.service.in
systemd-shutdownd.service.in
systemd-shutdownd.socket
systemd-sysctl.service.in
systemd-tmpfiles-clean.service.in
systemd-tmpfiles-clean.timer
systemd-tmpfiles-setup.service.in
systemd-update-utmp-runlevel.service.in
systemd-update-utmp-shutdown.service.in
systemd-user-sessions.service.in
systemd-vconsole-setup.service.in
umount.target
var-lock.mount
var-run.mount