Introduce the tmpfiles.dev service
This service handles setting up the tmpfiles entries for the /dev directory for Linux systems which needs to be run in the sysinit runlevel.
This commit is contained in:
parent
e9189cd8a2
commit
35f2f1ec73
@ -28,7 +28,7 @@ SRCS-FreeBSD+= adjkerntz.in devd.in dumpon.in encswap.in ipfw.in \
|
|||||||
NET_LO-Linux= net.lo
|
NET_LO-Linux= net.lo
|
||||||
SRCS-Linux= devfs.in dmesg.in hwclock.in consolefont.in keymaps.in \
|
SRCS-Linux= devfs.in dmesg.in hwclock.in consolefont.in keymaps.in \
|
||||||
killprocs.in modules.in mount-ro.in mtab.in numlock.in \
|
killprocs.in modules.in mount-ro.in mtab.in numlock.in \
|
||||||
procfs.in sysfs.in termencoding.in
|
procfs.in sysfs.in termencoding.in tmpfiles.dev.in
|
||||||
|
|
||||||
NET_LO-NetBSD= net.lo0
|
NET_LO-NetBSD= net.lo0
|
||||||
# Generic BSD scripts
|
# Generic BSD scripts
|
||||||
|
21
init.d/tmpfiles.dev.in
Normal file
21
init.d/tmpfiles.dev.in
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
#!@SBINDIR@/runscript
|
||||||
|
# Copyright 1999-2012 Gentoo Foundation
|
||||||
|
# Released under the 2-clause BSD license.
|
||||||
|
|
||||||
|
description="set up tmpfiles.d entries"
|
||||||
|
|
||||||
|
depend()
|
||||||
|
{
|
||||||
|
use dev-mount
|
||||||
|
before dev
|
||||||
|
keyword -prefix -vserver
|
||||||
|
}
|
||||||
|
|
||||||
|
start()
|
||||||
|
{
|
||||||
|
ebegin "setting up tmpfiles.d entries for /dev"
|
||||||
|
@LIBEXECDIR@/sh/tmpfiles.sh --prefix=/dev --create --remove \
|
||||||
|
${tmpfiles_opts}
|
||||||
|
eend $?
|
||||||
|
return 0
|
||||||
|
}
|
@ -12,7 +12,8 @@ depend()
|
|||||||
start()
|
start()
|
||||||
{
|
{
|
||||||
ebegin "setting up tmpfiles.d entries"
|
ebegin "setting up tmpfiles.d entries"
|
||||||
@LIBEXECDIR@/sh/tmpfiles.sh --create --remove ${tmpfiles_opts}
|
@LIBEXECDIR@/sh/tmpfiles.sh --exclude-prefix=/dev --create --remove \
|
||||||
|
${tmpfiles_opts}
|
||||||
eend $?
|
eend $?
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
@ -40,7 +40,7 @@ BOOT-FreeBSD+= adjkerntz dumpon syscons
|
|||||||
|
|
||||||
BOOT-Linux+= hwclock keymaps modules mtab procfs termencoding tmpfiles.setup
|
BOOT-Linux+= hwclock keymaps modules mtab procfs termencoding tmpfiles.setup
|
||||||
SHUTDOWN-Linux= killprocs mount-ro
|
SHUTDOWN-Linux= killprocs mount-ro
|
||||||
SYSINIT-Linux= devfs dmesg sysfs
|
SYSINIT-Linux= devfs dmesg sysfs tmpfiles.dev
|
||||||
|
|
||||||
# Generic BSD stuff
|
# Generic BSD stuff
|
||||||
BOOT-NetBSD+= hostid newsyslog savecore syslogd
|
BOOT-NetBSD+= hostid newsyslog savecore syslogd
|
||||||
|
Loading…
Reference in New Issue
Block a user