Fix Permission Denied on reading dmesg in an LXC container
This commit is contained in:
1 parent
1c94d793c0
commit
6b0ffd3103
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user