summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFedja Beader <specing@contact.me.on.irc.freenode.net>2013-08-06 00:27:30 +0200
committerFedja Beader <specing@contact.me.on.irc.freenode.net>2013-08-06 00:27:30 +0200
commit6b0ffd31035ddf6907dcf513afda9975ef425d02 (patch)
tree3f11a85ac314e3f7533eadfc94a4d42d7c052e46
parent1c94d793c025b763429e4bd006a78cfb2945ebb3 (diff)
downloadopenrc-6b0ffd31035ddf6907dcf513afda9975ef425d02.tar.gz
openrc-6b0ffd31035ddf6907dcf513afda9975ef425d02.tar.bz2
openrc-6b0ffd31035ddf6907dcf513afda9975ef425d02.tar.xz
Fix Permission Denied on reading dmesg in an LXC container
-rw-r--r--init.d/bootmisc.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.d/bootmisc.in b/init.d/bootmisc.in
index 565f6f2..a7e54a7 100644
--- a/init.d/bootmisc.in
+++ b/init.d/bootmisc.in
@@ -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