From mboxrd@z Thu Jan 1 00:00:00 1970 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 Content-Type: multipart/mixed; boundary="===============7189713582864806152==" List-Id: --===============7189713582864806152== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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/moun= tkernfs 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=3D755,size=3D8M /run /run || faile= d=3D1 fi =20 + if ! mountpoint /sys/fs/cgroup &> /dev/null; then + boot_mesg -n " /sys/fs/cgroup" ${NORMAL} + mount -t cgroup2 none /sys/fs/cgroup || failed=3D1 + fi + # create folder for dhcpcd changeroot mkdir -p /run/dhcpcd/chroot chown dhcpcd:dhcpcd /run/dhcpcd/chroot --=20 2.20.1 --===============7189713582864806152==--