1a8cd5ff9d
Initially, we were creating tmpfiles entries in the sysinit runlevel and again in the boot runlevel. Systemd runs the --create and --remove options in one service called systemd-tmpfiles-setup after the local file systems are mounted. Now we have a service called tmpfiles.setup which emulates this. This also closes the bug mentioned below, since we were originally writing to files that were on read-only file systems and that were not available. Reported-by: <devurandom@gmx.net> X-Gentoo-Bug: 439012 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=439012
19 lines
317 B
Plaintext
19 lines
317 B
Plaintext
#!@PREFIX@/sbin/runscript
|
|
# Copyright 1999-2012 Gentoo Foundation
|
|
# Released under the 2-clause BSD license.
|
|
|
|
description="set up tmpfiles.d entries"
|
|
|
|
depend()
|
|
{
|
|
need localmount
|
|
}
|
|
|
|
start()
|
|
{
|
|
ebegin "setting up tmpfiles.d entries"
|
|
@LIBEXECDIR@/sh/tmpfiles.sh --create --remove ${tmpfiles_opts}
|
|
eend $?
|
|
return 0
|
|
}
|