commit: b209fe3859c05c286037843bb34058f849c54b15 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: Tue Jun 2 18:11:04 2015 +0000 URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=b209fe38
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