commit: 4f3df4cacb20bb17838986376ad53d4063749a14 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> AuthorDate: Thu May 28 04:01:43 2015 +0000 Commit: William Hubbs <williamh <AT> gentoo <DOT> org> CommitDate: Wed Jun 3 16:16:39 2015 +0000 URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=4f3df4ca
bootmisc: Don't call dmesg in systemd-nspawn containers This fixes #57. init.d/bootmisc.in | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/init.d/bootmisc.in b/init.d/bootmisc.in index dbd258e..13f2389 100644 --- a/init.d/bootmisc.in +++ b/init.d/bootmisc.in @@ -214,10 +214,13 @@ start() if yesno $log_dmesg; then if $logw || checkpath -W /var/log; then # Create an 'after-boot' dmesg log - if [ "$RC_SYS" != VSERVER -a "$RC_SYS" != OPENVZ -a "$RC_SYS" != LXC ]; then - dmesg > /var/log/dmesg - chmod 640 /var/log/dmesg - fi + case "$RC_SYS" in + VSERVER|OPENVZ|LXC|SYSTEMD-NSPAWN) ;; + *) + dmesg > /var/log/dmesg + chmod 640 /var/log/dmesg + ;; + esac fi fi