1. 09 Jan, 2013 8 commits
  2. 08 Jan, 2013 4 commits
  3. 04 Jan, 2013 3 commits
  4. 03 Jan, 2013 2 commits
  5. 02 Jan, 2013 14 commits
  6. 25 Dec, 2012 7 commits
  7. 22 Dec, 2012 1 commit
  8. 20 Dec, 2012 1 commit
    • Support MS_SHARED / · cc28d0b0
      Serge Hallyn authored
      (I'll be out until Jan 2, but in the meantime, here is hopefully a
      little newyears gift - this seems to allow lxc-start with / being
      MS_SHARED on the host)
      
      When / is MS_SHARED (for instance with f18 and modern arch), lxc-start
      fails on pivot_root.  The kernel enforces that, when doing pivot_root,
      the parent of current->fs->root (as well as the new root and the putold
      location) not be MS_SHARED.
      
      To work around this, check /proc/self/mountinfo for a 'shared:' in
      the '/' line.  If it is there, then create a tiny MS_SLAVE tmpfs dir to
      serve as parent of /, recursively bind mount / into /root under that dir,
      make it rslave, and chroot into it.
      
      Tested with ubuntu raring image after doing 'mount --make-rshared /'.
      Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com>
      Acked-by: 's avatarStéphane Graber <stgraber@ubuntu.com>