From patchwork Fri Jul 16 11:14:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tremer X-Patchwork-Id: 4539 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4GR7t45fgtz3xGY for ; Fri, 16 Jul 2021 11:14:20 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4GR7t42S6gz17W; Fri, 16 Jul 2021 11:14:20 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4GR7t356VYz2xb4; Fri, 16 Jul 2021 11:14:19 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4GR7t21dMQz2xb4 for ; Fri, 16 Jul 2021 11:14:18 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4GR7t160PSz17W; Fri, 16 Jul 2021 11:14:17 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1626434057; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=yN3YE21nt94A67slfCoc96jSTx15bUA2SR3ju7mNA2U=; b=supxJbDqKUoihKpUuUPDzxOJR6AdY0VAGWpe/Kyobk54YNGpj91abnHcHDApL2jJZmCjra NrVBTOSvqtDYY+Ag== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1626434057; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=yN3YE21nt94A67slfCoc96jSTx15bUA2SR3ju7mNA2U=; b=gxznanjtPq1gKgBtt5sZf6657xfJNBEhVPwH8bWPcCXXHuQ9DcjHsvE8aUaplXXuBc2K68 LMIsL5+pD4bMqeA0f9hFB/BJ+gG0j4njHgVdzpxEjJmuK+dkZs0hc8moUT17ySdRpYaMOn U0LTF67bpv5F2qTawwIzrUYPPCMc/Qdr8L0vzFFVVyK0WVNsX2kZKJM/G7bIWzVmah9Mkl 1YND1PS41QoLB4OFzUlYZILj9cfhSlg8OWIkL+yCe4kc4slQA6q62J9QwBeF/oChrfesAT 8tMplGwqKl14PVF9clW/zv35CwZyrwUYPnf6tcz0io8cS1hp9zWh1E7UGQ2zxg== From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH 1/2] mountkernfs: Mount cgroup2 hierarchy Date: Fri, 16 Jul 2021 11:14:12 +0000 Message-Id: <20210716111413.23497-1-michael.tremer@ipfire.org> MIME-Version: 1.0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michael Tremer Errors-To: development-bounces@lists.ipfire.org Sender: "Development" Signed-off-by: Michael Tremer --- src/initscripts/system/mountkernfs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/initscripts/system/mountkernfs b/src/initscripts/system/mountkernfs index f0bfc5289..264da24c4 100644 --- a/src/initscripts/system/mountkernfs +++ b/src/initscripts/system/mountkernfs @@ -34,6 +34,11 @@ case "${1}" in mount -n -t tmpfs -o nosuid,nodev,mode=755,size=8M /run /run || failed=1 fi + if ! mountpoint /sys/fs/cgroup &> /dev/null; then + boot_mesg -n " /sys/fs/cgroup" ${NORMAL} + mount -t cgroup2 none /sys/fs/cgroup || failed=1 + fi + # create folder for dhcpcd changeroot mkdir -p /run/dhcpcd/chroot chown dhcpcd:dhcpcd /run/dhcpcd/chroot