Files
poky/meta/recipes-core/initscripts/initscripts-1.0/volatiles
Ross Burton f76d4b3549 udev: move /run volatile entry to udev instead of initscripts
initscripts is generally installed on systemd-using images, but because it
specifies that /run is a symlink to /var/run managed by volatiles it totally
breaks systemd by copying/deleting /run from underneath systemd.  Deleting
sockets mid-boot doesn't leave systemd in a happy place.

As this volatile reference of /run was introduced by udev 182, move it's
reference to the udev recipe.  This way it will never be present on systemd
images, as systemd manages /run as a tmpfs itself.

(From OE-Core rev: 5b0257e318340c2d6c8d3b0c3fa32272d6e9526b)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-03-26 22:43:05 +00:00

1.6 KiB

This configuration file lists filesystem objects that should get verified

during startup and be created if missing.

Every line must either be a comment starting with

or a definition of format:

where the items are separated by whitespace !

: d|f|l : (d)irectory|(f)ile|(l)ink

A linking example:

l root root 0777 /var/test /tmp/testfile

f root root 0644 /var/test none

Understanding links:

When populate-volatile is to verify/create a directory or file, it will first

check it's existence. If a link is found to exist in the place of the target,

the path of the target is replaced with the target the link points to.

Thus, if a link is in the place to be verified, the object will be created

in the place the link points to instead.

This explains the order of "link before object" as in the example above, where

a link will be created at /var/test pointing to /tmp/testfile and due to this

link the file defined as /var/test will actually be created as /tmp/testfile.

d root root 1777 /var/volatile/lock none d root root 0755 /var/volatile/log none d root root 0755 /var/volatile/run none d root root 1777 /var/volatile/tmp none l root root 1777 /var/lock /var/volatile/lock l root root 0755 /var/log /var/volatile/log l root root 0755 /var/run /var/volatile/run l root root 1777 /var/tmp /var/volatile/tmp l root root 1777 /tmp /var/tmp d root root 0755 /var/lock/subsys none f root root 0664 /var/log/wtmp none f root root 0664 /var/run/utmp none l root root 0644 /etc/resolv.conf /var/run/resolv.conf f root root 0644 /var/run/resolv.conf none