bootmisc: Don't call dmesg in systemd-nspawn containers

This fixes #57.
This commit is contained in:
Mike Gilbert 2015-05-28 00:01:43 -04:00 committed by William Hubbs
parent c94c8288cd
commit b209fe3859

View File

@ -214,10 +214,13 @@ start()
if yesno $log_dmesg; then if yesno $log_dmesg; then
if $logw || checkpath -W /var/log; then if $logw || checkpath -W /var/log; then
# Create an 'after-boot' dmesg log # Create an 'after-boot' dmesg log
if [ "$RC_SYS" != VSERVER -a "$RC_SYS" != OPENVZ -a "$RC_SYS" != LXC ]; then case "$RC_SYS" in
VSERVER|OPENVZ|LXC|SYSTEMD-NSPAWN) ;;
*)
dmesg > /var/log/dmesg dmesg > /var/log/dmesg
chmod 640 /var/log/dmesg chmod 640 /var/log/dmesg
fi ;;
esac
fi fi
fi fi