From b209fe3859c05c286037843bb34058f849c54b15 Mon Sep 17 00:00:00 2001 From: Mike Gilbert Date: Thu, 28 May 2015 00:01:43 -0400 Subject: [PATCH] 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 dbd258e8..13f23891 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