Skip to content

Commit 3bc0855

Browse files
committed
systemd: remove systemd kernel cmdline req for cgroupsv1
Add a bootconfig to remove the requirement for `SYSTEMD_CGROUP_ENABLE_LEGACY_FORCE` to be set on the kernel command line to enable cgroupsv1. This maintains compatibility with the behaviour in systemd-252 Signed-off-by: Vighnesh Maheshwari <[email protected]>
1 parent 64ca45b commit 3bc0855

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

packages/systemd-257/systemd-257.spec

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ URL: https://www.freedesktop.org/wiki/Software/systemd
1212
Source0: https://github.com/systemd/systemd/archive/v%{version}/systemd-%{version}.tar.gz
1313

1414
Source1: systemd-mount-rate-bootconfig.conf
15+
Source2: systemd-cgroup-legacy-force-bootconfig.conf
1516

1617
# Local patch to add the acquire the id for VMware
1718
Patch9001: 9001-machine-id-setup-generate-stable-ID-under-VM.patch
@@ -308,6 +309,7 @@ find %{buildroot} -type f -name README -print -delete
308309

309310
install -d %{buildroot}%{_cross_bootconfigdir}
310311
install -p -m 0644 %{S:1} %{buildroot}%{_cross_bootconfigdir}/20-mount-rate-limit-burst.conf
312+
install -p -m 0644 %{S:2} %{buildroot}%{_cross_bootconfigdir}/21-cgroup-enable-legacy-force.conf
311313

312314
%files
313315
%license LICENSE.GPL2 LICENSE.LGPL2.1
@@ -404,6 +406,7 @@ install -p -m 0644 %{S:1} %{buildroot}%{_cross_bootconfigdir}/20-mount-rate-limi
404406

405407
%dir %{_cross_bootconfigdir}
406408
%{_cross_bootconfigdir}/20-mount-rate-limit-burst.conf
409+
%{_cross_bootconfigdir}/21-cgroup-enable-legacy-force.conf
407410

408411
%dir %{_cross_unitdir}
409412
%{_cross_unitdir}/basic.target
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
kernel.SYSTEMD_CGROUP_ENABLE_LEGACY_FORCE=1

0 commit comments

Comments
 (0)