Installing Home Assistant Supervised on a Raspberry Pi using Debian 12

Hello HA friends,
I’ve just installed HA on a Orange PI 3b running Debian 12 “Bookworm” and I spent a few hours making it works well because CGroup v2 was configured by default on the image provided by http://www.orangepi.org/.
No /boot/cmdline.txt file, no grub on that version, so I made some searching and finally foud the solution on a russian forum.
Here is the modifications to do :

cd /boot
sudo nano boot.cmd

Find the line :

if test "${docker_optimizations}" = "on"; then setenv bootargs "${bootargs} cgroup_enable=memory swapaccount=1"; fi

Add this line AFTER the above line :

setenv bootargs "${bootargs} systemd.unified_cgroup_hierarchy=false systemd.legacy_systemd_cgroup_controller=false cgroup_enable=memory apparmor=1 security=apparmor"

Save and quit nano (Ctrl+o, enter, Ctrl-x)

Built a new boot image :

sudo mkimage -C none -A arm -T script -d boot.cmd boot.scr

Reboot the Orange PI

sudo reboot now

After reboot, verify apparmor is correctly installed and working

systemctl status apparmor.service

That’s it !
No more warning message from HA about bad CGroup version.
HACS is now installing flawlessly (it was not before … )

Hope that it helps !
Best regards

1 Like