Skip to content
This repository has been archived by the owner on Feb 24, 2020. It is now read-only.

stage1: common: mount also the host cgroup hierarchy #1437

Merged
merged 4 commits into from Sep 24, 2015

Commits on Sep 24, 2015

  1. Configuration menu
    Copy the full SHA
    f21c649 View commit details
    Browse the repository at this point in the history
  2. common: stage1: refactor cgroups creation

    We'll need it for mounting the host cgroups too.
    iaguis committed Sep 24, 2015
    Configuration menu
    Copy the full SHA
    9461be2 View commit details
    Browse the repository at this point in the history
  3. stage1: common: mount also the host cgroup hierarchy

    To avoid problems on environments without a properly mounted cgroup
    hierarchy and/or without the systemd hierarchy we also mount the host
    cgroup hierarchy.
    
    Since we're in a different mount namespace the host is not affected.
    iaguis committed Sep 24, 2015
    Configuration menu
    Copy the full SHA
    c23863b View commit details
    Browse the repository at this point in the history
  4. stage1: common: join a subcgroup if we're in the root one

    systemd-nspawn doesn't allow the caller process to be in the root
    cgroup. If that is the case, we create and add ourselves to a new "rkt"
    subcgroup.
    
    Distributions like Void Linux put every process in the root cgroup by
    default so this allows rkt to work on them.
    iaguis committed Sep 24, 2015
    Configuration menu
    Copy the full SHA
    94b3fb5 View commit details
    Browse the repository at this point in the history