Support for flat cgroups, and use more portable mountpoint #4

merged 3 commits into from Feb 25, 2014
Commits on Feb 24, 2014
  1. detect flat cgroup mount, mount cgroup accordingly

    vito committed Feb 16, 2014
    If an existing cgroup mount is mounted flat, all other cgroup mounts have to
    be flat as well. Similarly, if there are existing mounts for individual
    subsystems, other mounts have to be done the same. So, detect if there's an
    existing flat mount, and mount ours flat as well, and just bind-mount each
  2. use more specific intermediate host mount point

    vito committed Feb 24, 2014
    mnt/ is very generic and happens to match other containerization systems'
    (say, Docker/LXC) mount points, so running Garden in them is tricky.
    so, mount to tmp/warden-host instead. this mount point only exists for a brief
    period of time during container creation (after pivot_root and before the
    daemon starts), so it makes sense to be as portable as possible.
  3. fix accidental comment-out of wshd log redirect

    Alex Suraci committed with hiremaga Feb 24, 2014
    Signed-off-by: Abhijit Hiremagalur <>