[systemd-devel] how to let systemd mount /run very early?

Kay Sievers kay.sievers at vrfy.org
Thu Jul 21 06:53:05 PDT 2011


On Thu, Jul 21, 2011 at 15:31, Lennart Poettering
<lennart at poettering.net> wrote:
> On Thu, 21.07.11 15:55, yang.y.yi at gmail.com (yang.y.yi at gmail.com) wrote:
>> i found some packages installed some files in /var/run and /var/lock, but
>> /var/run is symbol linked to /run and /var/lock is symbol linked to
>> /run/lock, /run is a tmpfs, it can't save some files permanently, Fedora's
>> way is /run is a disk directory, it saves the installed files by some
>> packages, in initramfs, init will take responsibility for mounting /run as
>> tmpfs and copy /run in disk to this tmpfs, but for MeeGo, we don't have
>> initrd/initramfs, so this only can be done by systemd in boot phase, anybody
>> knows a good way to do this?
>
> Fix your packages not to install any files into /run. That's what
> /etc/tmpfiles.d/ is for.
>
> See  https://fedoraproject.org/wiki/Packaging:Tmpfiles.d

Just a note: Packages should use: /usr/lib/tmpfiles.d/ today. /etc
should be reserved for local administration and should not be filled
by package content.

Kay


More information about the systemd-devel mailing list