)]}'
{
  "commit": "cd7bb882a4e1e45747920b9aa4f20f4f769cad49",
  "tree": "55919130bbbb26781c240cd7f2598fc49533b9bf",
  "parents": [
    "7b4c0d34cf56f99d5287d939e96f786e2e1421a7"
  ],
  "author": {
    "name": "Kevin Berry",
    "email": "kpberry@google.com",
    "time": "Wed Apr 02 20:12:17 2025 +0000"
  },
  "committer": {
    "name": "Kevin Berry",
    "email": "kpberry@google.com",
    "time": "Wed Apr 02 13:56:41 2025 -0700"
  },
  "message": "toolbox: Force systemd-nspawn to use unified hierarchy\n\nBecause the toolbox image doesn\u0027t have systemd installed, systemd-nspawn\nassumes it must run in legacy cgroup v1 mode instead of in cgroup v2\nmode. This results in both cgroup v1 and v2 being used on an instance,\nregardless of the systemd.unified_cgroup_hierarchy setting. This default\nbehavior was fixed in\nhttps://github.com/systemd/systemd/commit/d89ee0fcf983ae765aab9629349225ca036482f1,\nbut applying that systemd patch could technically break users.\n\nAs a mitigation for existing COS milestones, we can set\nSYSTEMD_NSPAWN_UNIFIED_HIERARCHY\u003dyes for the systemd-nspawn call to\nforce toolbox to spawn with the unified v2 hierarchy, if possible. We\ncan defer applying the systemd patch to COS 125 and above.\n\nBUG\u003db/406594194,b/407615979\nTEST\u003dpresubmit, run modified toolbox script and ensure that it does not\nresult in hybrid cgroups, run modified toolbox on an instance using\nhybrid cgroups and ensure that it doesn\u0027t error\nRELEASE_NOTE\u003dModified toolbox to use unified cgroup hierarchy mode instead of hybrid mode when possible.\n\ncos-patch: bug\nChange-Id: Ic4834396055cbea6fcfb8d464c089db4adc4d243\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "efde85215418059c6465e2a56dd47ad707196518",
      "old_mode": 33261,
      "old_path": "toolbox",
      "new_id": "54b70064416750146951967c688a324eff78ac0a",
      "new_mode": 33261,
      "new_path": "toolbox"
    }
  ]
}
