Commit 5b75ee47 by Michael Adam Committed by Stéphane Graber

lxc-fedora: when using systemd, set lxc.kmsg = 0 in the config

This is to prevent systemd-journald to enter a 100% cpu loop. Signed-off-by: 's avatarMichael Adam <obnox@samba.org> Acked-by: 's avatarSerge E. Hallyn <serge.hallyn@ubuntu.com>
parent d3eccbbf
......@@ -1083,13 +1083,22 @@ lxc.include = @LXCTEMPLATECONFIG@/fedora.common.conf
" >> $config_path/config
fi
if [ "x$have_systemd" = "x1" ]; then
cat <<EOF >> $config_path/config
lxc.autodev = 1
lxc.kmsg = 0
EOF
else
cat <<EOF >> $config_path/config
lxc.autodev = 0
EOF
fi
# Append things which require expansion here...
cat <<EOF >> $config_path/config
lxc.arch = $arch
lxc.utsname = $utsname
lxc.autodev = $auto_dev
# When using LXC with apparmor, uncomment the next line to run unconfined:
#lxc.aa_profile = unconfined
......@@ -1303,12 +1312,12 @@ if [ -z "$release" ]; then
fi
fi
# Fedora 15 and above run systemd. We need autodev enabled to keep
# Fedora 15 and above run systemd.We need autodev enabled to keep
# systemd from causing problems.
# Also, kmsg must not be mapped to prevent a 100% cpu loop
# in systemd-journald.
if [ $release -gt 14 ]; then
auto_dev="1"
else
auto_dev="0"
have_systemd="1"
fi
if [ "$(id -u)" != "0" ]; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment