From 6b0ffd31035ddf6907dcf513afda9975ef425d02 Mon Sep 17 00:00:00 2001 From: Fedja Beader Date: Tue, 6 Aug 2013 00:27:30 +0200 Subject: Fix Permission Denied on reading dmesg in an LXC container --- init.d/bootmisc.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'init.d/bootmisc.in') diff --git a/init.d/bootmisc.in b/init.d/bootmisc.in index 565f6f21..a7e54a7c 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 -- cgit v1.2.3