7bd456ed7b
This adds the -systemd-nspawn keyword to service scripts which are not intended to run in systemd-nspawn containers. This fixes #52. X-Gentoo-Bug: 548058 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=548058
19 lines
330 B
Plaintext
19 lines
330 B
Plaintext
#!@SBINDIR@/openrc-run
|
|
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
|
# Released under the 2-clause BSD license.
|
|
|
|
description="Set the dmesg level for a cleaner boot"
|
|
|
|
depend()
|
|
{
|
|
before dev modules
|
|
keyword -lxc -prefix -systemd-nspawn -vserver
|
|
}
|
|
|
|
start()
|
|
{
|
|
if [ -n "$dmesg_level" ]; then
|
|
dmesg -n$dmesg_level
|
|
fi
|
|
}
|