Skip to content

Commit cd6c94f

Browse files
fbernierigorpecovnik
authored andcommitted
Do not disable cgroupsv2 on Home Assistant installation
As of Home Assistant Supervisor release [2024.12.0](https://github.com/home-assistant/supervisor/releases/tag/2024.12.0), support for CGroup v2 has been added. Since it's my understanding that older version of the installer (1.6.0 currently in the repository) install the latest version of HomeAssistant and its supervisor, we can safely remove this. This update removes the explicit disabling of `systemd.unified_cgroup_hierarchy=0`, aligning with the switch to cgroupsv2 introduced in installer release [3.0.0](https://github.com/home-assistant/supervised-installer/releases/tag/3.0.0).
1 parent bc5e3ee commit cd6c94f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tools/modules/software/module_haos.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ function module_haos() {
8989

9090
if [[ -f /boot/firmware/cmdline.txt ]]; then
9191
# Raspberry Pi
92-
sed -i '/./ s/$/ systemd.unified_cgroup_hierarchy=0 apparmor=1 security=apparmor/' /boot/firmware/cmdline.txt
92+
sed -i '/./ s/$/ apparmor=1 security=apparmor/' /boot/firmware/cmdline.txt
9393
elif [[ -f /boot/armbianEnv.txt ]]; then
94-
echo "extraargs=systemd.unified_cgroup_hierarchy=0 apparmor=1 security=apparmor" >> "/boot/armbianEnv.txt"
94+
echo "extraargs=apparmor=1 security=apparmor" >> "/boot/armbianEnv.txt"
9595
fi
9696
sleep 5
9797
for s in {1..50};do
@@ -134,9 +134,9 @@ function module_haos() {
134134
fi
135135
rm -f /usr/local/bin/supervisor_fix.sh
136136
rm -f /etc/systemd/system/supervisor-fix.service
137-
sed -i "s/ systemd.unified_cgroup_hierarchy=0 apparmor=1 security=apparmor//" /boot/armbianEnv.txt
137+
sed -i "s/ apparmor=1 security=apparmor//" /boot/armbianEnv.txt
138138
# Raspberry Pi
139-
sed -i "s/ systemd.unified_cgroup_hierarchy=0 apparmor=1 security=apparmor//" /boot/firmware/cmdline.txt
139+
sed -i "s/ apparmor=1 security=apparmor//" /boot/firmware/cmdline.txt
140140
srv_daemon_reload
141141
# restore os-release
142142
sed -i "s/^PRETTY_NAME=\".*/PRETTY_NAME=\"${VENDOR} ${REVISION} ($VERSION_CODENAME)\"/g" "/etc/os-release"

0 commit comments

Comments
 (0)