]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc-oracle: mount cgroup:mixed
authorDwight Engen <dwight.engen@oracle.com>
Thu, 3 Jul 2014 19:32:12 +0000 (15:32 -0400)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 3 Jul 2014 19:39:11 +0000 (15:39 -0400)
- Mounting cgroup:mixed prevents systemd inside the container from
  moving its children out of the cgroups lxc setup. This ensure the
  limits setup in the configuration or with lxc-cgroup are effective.

- Update for the OL7 channel name that will be used on
  public-yum.oracle.com.

Signed-off-by: Dwight Engen <dwight.engen@oracle.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
config/templates/oracle.common.conf.in
templates/lxc-oracle.in

index ec5ae94dd852dccec378b1be7a52664ee543e211..10522b2b6756670a106f5bb7d1e136ecb9a48b70 100644 (file)
@@ -2,7 +2,7 @@
 lxc.include = @LXCTEMPLATECONFIG@/common.conf
 
 # Mount entries
-lxc.mount.auto = proc:mixed sys:ro
+lxc.mount.auto = cgroup:mixed proc:mixed sys:ro
 
 # Capabilities
 # Uncomment these if you don't run anything that needs the capability, and
index 7a704e6aa1d50fe23bbb6b530e601b5466551b9e..830ce5cffa64a0da44729b1f99d52fc02e4da1ee 100644 (file)
@@ -658,7 +658,9 @@ container_rootfs_create()
             # disable all repos, then enable the repo for the version we are installing.
             if [ $container_release_minor = "latest" ]; then
                 repo=$latest_L""$container_release_major"_"$container_release_minor
-            elif [ $container_release_major = "6" -o  $container_release_major = "7" ]; then
+            elif [ $container_release_major = "7" ]; then
+                    repo="ol"$container_release_major"_u"$container_release_minor"_base"
+            elif [ $container_release_major = "6" ]; then
                 if   [ $container_release_minor = "0" ]; then
                     repo="ol"$container_release_major"_ga_base"
                 else