From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id EFK5G5oCl2RcZQEASxT56A (envelope-from ) for ; Sat, 24 Jun 2023 16:50:02 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id IKWIG5oCl2TLmAAAauVa8A (envelope-from ) for ; Sat, 24 Jun 2023 16:50:02 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 237862E02D for ; Sat, 24 Jun 2023 16:50:02 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=samlockart.com header.s=protonmail2 header.b=QwMznNE9; dmarc=fail reason="SPF not aligned (relaxed)" header.from=samlockart.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1687618202; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=Xo9TqYBC9v5ulYBeHZi5qgUqOj2eJZz0ZpKU8OOMmJQ=; b=G5Ks6r18RzvxQqtn2y4H8TIYLgGoatpbVDCumAWTSiEm5fiWwc0TfNzoKKivfDAuK/Gd0X 5YqLIGXbZe2FGMUBK5J26Fws4OP+H2h4guu4JBUmBuGXvQ7qvrZfeUTsvyz4gTbo8f/PCs PXiJDXAJIVDDLEkM17Xhrdmcm7ne8Dr05q1BHseVpmnPX9XDKHUhSgpATuGHrVzBAw6gz2 Y0g5lJ18grhcPI86NAfsirBnng7XhbNj8JGmGIq6VKTfcftcexTGaI618gzaSURa0ArQMn ZdLlrCEcZBcWo5ClCroa7TJ2tuNLj/if3EUK8X1Z/X2Vhp+uMqIlVgdJ5VDF0w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=samlockart.com header.s=protonmail2 header.b=QwMznNE9; dmarc=fail reason="SPF not aligned (relaxed)" header.from=samlockart.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1687618202; a=rsa-sha256; cv=none; b=tczsiRh7EFfeYSpA4xh/KRA9mteCX8lSNMbneQWo2SJk5Ss3GkbP0pgsSIppfQmUyQjVaN snH+4Rd0GyVnIoKAzBsCkb2mul5JDAtQgSyq2wFHmKAclVGqW/fzvTiuyoxtsS87/6nfrE IhQ0Qbf/d4NaqxOYD/vUklKeUBhG+qwdwoEIHi/i0VoiY59M7A1f7iWT6WgcxKkmFBzTie YhWgogqj3qiv+M8nQbAAUGByl0OnedAR7YB08vi8mnorBLxGMHBfHg1v5Q66b0PpQKtpp0 x5IL5jEpKfhMYwu7tx33whxqwJJCoI3nj/O0b8O7xkLQfkwvY0uZTjLHo4iqBA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qD4aG-0002Cz-IO; Sat, 24 Jun 2023 10:49:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qCwgm-0003NT-HO for guix-patches@gnu.org; Sat, 24 Jun 2023 02:24:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qCwgl-0003Ey-1q for guix-patches@gnu.org; Sat, 24 Jun 2023 02:24:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qCwgk-0001n8-Ia for guix-patches@gnu.org; Sat, 24 Jun 2023 02:24:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64260] [PATCH] Use cgroups v2 file system Resent-From: Sam Lockart Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 24 Jun 2023 06:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 64260 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 64260@debbugs.gnu.org X-Debbugs-Original-To: "guix-patches@gnu.org" Received: via spool by submit@debbugs.gnu.org id=B.16875878226845 (code B ref -1); Sat, 24 Jun 2023 06:24:02 +0000 Received: (at submit) by debbugs.gnu.org; 24 Jun 2023 06:23:42 +0000 Received: from localhost ([127.0.0.1]:39862 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCwgM-0001mB-G0 for submit@debbugs.gnu.org; Sat, 24 Jun 2023 02:23:42 -0400 Received: from lists.gnu.org ([209.51.188.17]:56710) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCtgq-0004YU-Pm for submit@debbugs.gnu.org; Fri, 23 Jun 2023 23:11:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qCtgq-0006Gm-Ju for guix-patches@gnu.org; Fri, 23 Jun 2023 23:11:56 -0400 Received: from mail-40136.proton.ch ([185.70.40.136]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qCtgg-0008IT-At for guix-patches@gnu.org; Fri, 23 Jun 2023 23:11:56 -0400 Date: Sat, 24 Jun 2023 03:11:26 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samlockart.com; s=protonmail2; t=1687576301; x=1687835501; bh=Xo9TqYBC9v5ulYBeHZi5qgUqOj2eJZz0ZpKU8OOMmJQ=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=QwMznNE9YYowPl2xVRfGAv+8RPpIciDm+o2HCYzhFsv/voT6HHHf4HX+n+hD6VLtH RsBvQwh6IK6JOxiaK3ugHZIhzdLKIQXjEu5g2USJd0zITk3Cfa8E/zssoWvWFOfHNq ct9Fi/Gs4Vq7/aeSQFl+m4eW/Ti6E69bJ8HpqVN/GYIwRo9O/hTGIQigkaXkzMawq1 Z6yuvjWiB9VUtuZVgAerSy5KapQ1YjAwrmLi7fiaD2dmWqTmY3451q5J/G5diJPMby uaiYPfU4OwXqorI38UtgzwgrbmYQAoJofDEGm5LmRjyN4McFKDPiTxLQuXmUlsE9+7 bJf5oDu8ReZGA== From: Sam Lockart Message-ID: Feedback-ID: 30567524:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.40.136; envelope-from=sam@samlockart.com; helo=mail-40136.proton.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 24 Jun 2023 02:23:36 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Sat, 24 Jun 2023 10:49:49 -0400 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -3.15 X-Spam-Score: -3.15 X-Migadu-Queue-Id: 237862E02D X-TUID: /MPk0SyKGaqN cgroup v2 is the next generation of the control groups API. This patch replaces the cgroup v1 file system with the unified cgroup v2 file system. cgroup v2 allows for things like containerd/podman to run rootless containe= rs and opens guix system up to running things like Kubernetes. * gnu/system/file-systems.scm: Use cgroups v2 file system --- gnu/system/file-systems.scm | 27 +++++++-------------------- 1 file changed, 7 insertions(+), 20 deletions(-) diff --git a/gnu/system/file-systems.scm b/gnu/system/file-systems.scm index 0ff5a0dcf6..59e04bcecf 100644 --- a/gnu/system/file-systems.scm +++ b/gnu/system/file-systems.scm @@ -445,26 +445,13 @@ (define %immutable-store (flags '(read-only bind-mount no-atime)))) =20 (define %control-groups - (let ((parent (file-system - (device "cgroup") - (mount-point "/sys/fs/cgroup") - (type "tmpfs") - (check? #f)))) - (cons parent - (map (lambda (subsystem) - (file-system - (device "cgroup") - (mount-point (string-append "/sys/fs/cgroup/" subsystem= )) - (type "cgroup") - (check? #f) - (options subsystem) - (create-mount-point? #t) - - ;; This must be mounted after, and unmounted before the - ;; parent directory. - (dependencies (list parent)))) - '("cpuset" "cpu" "cpuacct" "memory" "devices" "freezer" - "blkio" "perf_event" "pids"))))) + ;; The cgroup2 file system. + (list (file-system + (device "none") +=09 (mount-point "/sys/fs/cgroup") +=09 (type "cgroup2") +=09 (check? #f) +=09 (create-mount-point? #f)))) =20 (define %elogind-file-systems ;; We don't use systemd, but these file systems are needed for elogind, --=20 2.39.2