[lxc-devel] [PATCH] lxc-oracle: mount cgroup:mixed

Stéphane Graber stgraber at ubuntu.com
Thu Jul 3 19:38:41 UTC 2014


On Thu, Jul 03, 2014 at 03:32:12PM -0400, Dwight Engen wrote:
> - 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 at oracle.com>

Acked-by: Stéphane Graber <stgraber at ubuntu.com>

> ---
>  config/templates/oracle.common.conf.in | 2 +-
>  templates/lxc-oracle.in                | 4 +++-
>  2 files changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/config/templates/oracle.common.conf.in b/config/templates/oracle.common.conf.in
> index ec5ae94..10522b2 100644
> --- a/config/templates/oracle.common.conf.in
> +++ b/config/templates/oracle.common.conf.in
> @@ -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
> diff --git a/templates/lxc-oracle.in b/templates/lxc-oracle.in
> index 7a704e6..830ce5c 100644
> --- a/templates/lxc-oracle.in
> +++ b/templates/lxc-oracle.in
> @@ -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
> -- 
> 1.9.3
> 
> _______________________________________________
> lxc-devel mailing list
> lxc-devel at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-devel

-- 
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20140703/73ef549a/attachment.sig>


More information about the lxc-devel mailing list