" >> $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
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