Installing Home Assistant Supervised on a Raspberry Pi using Debian 12

I like your solution. But to be clear I’ve installed on a clean debian bullseye system, not on raspberry os. Looking for grub shouldn’t be something this package does on an arm system. There is no grub on any arm based system I’m aware of. Seems a few lines of code in the package could fix this. My kernel parameters are in /boot/extlinux/extlinux.conf, which I believe is standard on most debian arm installs. When the package see it’s an arm install, or grub file isn’t present, it could just post a message about the need to fix. Thanks for the response.

Where did you get the image from? This?

This site has scripts that builds for a few different boards. I’m using the N2+ builld.

https://github.com/pyavitz/debian-image-builder

You have to build the image on a debian bullseye system and it’ll cross compile anything special required for the specific image you’re building. The guy that runs the site is very responsive and its only a couple commands to get a full image. He has an image build for PI4, but I haven’t used it.

So if I understand you correctly you are installing HA Supervised on an Odroid N2+ but not on a Raspberry Pi?

Yes, I think the N2+ is the best option for HA. If you use a raspberry pi that same guy has a site specifically for Raspberry pi image builds

https://github.com/pyavitz/rpi-img-builder

The guy recommends this builder if you’re going to run on a pi.

He actually has some full images posted here

https://github.com/pyavitz/binary/releases/tag/images

Exclusively for running HA Supervised on a RPI you really should use an image specially cooked for the RPI but not for Odroid.

Note Section 1 – Install Debian 11

1.1) Start by downloading the correct xz-compressed image for your Pi from HERE . For a Pi 4, you will need the image listed as 4 under Family

Then you are posting into the wrong thread. This thread is for Installing Home Assistant Supervised on a Raspberry Pi with Debian 11.

As for installing HA on Odroid there are plenty of instructions on the web like here or here or here and many more.

1 Like

The images I’ve posted are 100% Debian with minimal items installed. Ideally I’d want a bullseye image from the raspberry pi people. I did tried the straight bullseye image for PI4 but it ended up crashing. It seemed to have some issues when I tried it. Anyway the guy that runs that site I mentioned seems pretty committed to getting clean images that work. As you’ve indicated you can’t really find a good image for odroid N2+. There is one available on the hardkernel forum but it had reboot issues. Since HA had a specific release with odroid it would be nice if the HA team has made their debian release available for people that need to do a little more than the basic HA stuff.

While I can understand you frustration you are clogging up a forum thread (Community Guide) for installing and running HA Supervised on the Rasspberry Pi and probably confusing people who don’t read thoughtfully.

I would open a new thread specially about installing HA Supervised on Odroid N2(+). That way you might get more focused support and things here are not getting mixed up.

2 Likes

dist-upgrading from rpi os buster to bullseye worked flawlessly for me. Maybe you should give it a try.

I posted here because I had the same bullseye issue and then I respond to your questions. Seems we don’t agree on who’s clogging who. Have a good day.

I believe this thread is very specific on RPI right? and you are asking for N2+ which is totally a different HW?

1 Like

You guys should read the thread. Someone posted an issue. I gave a solution. Someone gave an alternative solution. I said that was a good solution, but I also pointed out that the issue was arm specific, as arm boards don’t use grub. Then I was asked about the distro I used and pointed to it and pointed out it was N2+, and also indicate the guy that made the N2+ distro also makes distros for the PI. No question just information that could be useful for someone trying to install the latest release on an arm board, which includes all of the PIs. Along with an alternative distro build for PIs that could also be useful for people using PIs. Sorry I’ll make sure not to post a solution next time.

1 Like

Anyway this is a public forum and you should keep on helping others. I’m sorry if I offended you. But that is not my intentions. Its just this is already a very long thread and the informations might lost in the tangle.

Thank You, i almost despaired because I couldn´t get it running!

Combine @bkprath and my solution:
TL;DR: Before starting the HA Supervised installation run these lines:

sudo echo "systemd.unified_cgroup_hierarchy=false" > /etc/default/grub
sudo sed -i -e "1 s/$/ systemd.unified_cgroup_hierarchy=false/" /boot/cmdline.txt
sudo reboot

If you are more cautious and do not trust random commands on the web:

  1. Add systemd.unified_cgroup_hierarchy=false to /etc/default/grub.
  2. Add systemd.unified_cgroup_hierarchy=false to the end of /boot/cmdline.txt.
  3. Reboot.

Explanation:
This will make sure the installer finds the desired value set for grub and carry on. Also the value is properly set and HA Supervised will run as expected.

It is the same behaviour compared to the installer which contains these lines in its postinst script:

[...]
# Switch to cgroup v1
if ! grep -q "systemd.unified_cgroup_hierarchy=false" /etc/default/grub; then
    info "Switching to cgroup v1"
    cp /etc/default/grub /etc/default/grub.bak
    sed -i 's/^GRUB_CMDLINE_LINUX_DEFAULT="/&systemd.unified_cgroup_hierarchy=false /' /etc/default/grub
    update-grub
    touch /var/run/reboot-required
fi
[...]

Finally the Raspberrymatic add on, which requires cgroup support, is up and running again on my installation.

2 Likes

i have jumped a few versions up today and its painfull missing of hasc for example…
all my config are mess!

is there some way to fix it at once? or shmtn…

Not sure what your issue is. Are you saying you haven’t updated HA for some time and now have config issues?

If that is the case, that has nothing to do with this installation guide and I’d recommend you go and read all of the breaking changes from each release you have skipped and fix.

1 Like

This is simpler and far more elegant than my approach was lol. I unpacked the deb file, commented out the offending lines, rebuilt and then installed my new deb :slight_smile:. I don’t use Raspberrymatic, though, and don’t feel the need to downgrade my cgroup version.