diff options
-rw-r--r-- | init.d/bootmisc.in | 11 |
1 files 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 |