Fix Permission Denied on reading dmesg in an LXC container
This commit is contained in:
parent
1c94d793c0
commit
6b0ffd3103
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user