bootmisc: Don't call dmesg in systemd-nspawn containers
This fixes #57.
This commit is contained in:
parent
c94c8288cd
commit
b209fe3859
@ -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
|
||||||
dmesg > /var/log/dmesg
|
VSERVER|OPENVZ|LXC|SYSTEMD-NSPAWN) ;;
|
||||||
chmod 640 /var/log/dmesg
|
*)
|
||||||
fi
|
dmesg > /var/log/dmesg
|
||||||
|
chmod 640 /var/log/dmesg
|
||||||
|
;;
|
||||||
|
esac
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user