From e3e667d30a479416a490f7a8cf36c315f7a109da Mon Sep 17 00:00:00 2001 From: Andarwinux Date: Sat, 16 Nov 2024 00:00:00 +0000 Subject: [PATCH] [Kernel Config] disable cgroupv1 with built-in cmdline Fixes issues when using systemd 256 https://github.com/microsoft/WSL/issues/6662 --- wsl2_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wsl2_defconfig b/wsl2_defconfig index d8c31e9..d3659d2 100644 --- a/wsl2_defconfig +++ b/wsl2_defconfig @@ -81,6 +81,8 @@ CONFIG_EFI_MIXED=y CONFIG_HZ_1000=y CONFIG_PHYSICAL_ALIGN=0x1000000 CONFIG_LEGACY_VSYSCALL_NONE=y +CONFIG_CMDLINE_BOOL=y +CONFIG_CMDLINE="cgroup_no_v1=all systemd.unified_cgroup_hierarchy=1" # CONFIG_SUSPEND is not set # CONFIG_ACPI_SPCR_TABLE is not set # CONFIG_ACPI_REV_OVERRIDE_POSSIBLE is not set