Fix Permission Denied on reading dmesg in an LXC container

This commit is contained in:
Fedja Beader 2013-08-06 00:27:30 +02:00
parent 1c94d793c0
commit 6b0ffd3103

View File

@ -190,7 +190,7 @@ 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 ]; then
if [ "$RC_SYS" != VSERVER -a "$RC_SYS" != OPENVZ -a "$RC_SYS" != LXC ]; then
dmesg > /var/log/dmesg
chmod 640 /var/log/dmesg
fi