Install Home Assistent on Alma Linux 8

This will install the Home Assistant Supervisor on an AlmaLinux 8 system:

dnf install -y  jq wget curl udisks2 glib2 NetworkManager dbus

# Below lines can be removed after alma support is there
cp /etc/os-release /etc/os-release.orig
sed -i 's/ID="almalinux"/ID="centos"/' /etc/os-release

curl -fsSL get.docker.com | sh
mv /etc/os-release.orig /etc/os-release

dnf -y install go podman podman-docker
wget https://github.com/home-assistant/os-agent/archive/refs/tags/1.2.2.tar.gz
tar xf 1.2.2.tar.gz
cd os-agent-1.2.2
go build -ldflags "-X main.version="
cp contrib/haos-agent.service /etc/systemd/system
cp contrib/io.hass.conf /etc/dbus-1/system.d
cp os-agent /usr/bin
systemctl daemon-reload
systemctl enable haos-agent
systemctl start haos-agent
cd ..

wget https://github.com/home-assistant/supervised-installer/archive/refs/tags/1.0.2.tar.gz
tar xf 1.0.2.tar.gz
cd supervised-installer-1.0.2/homeassistant-supervised/
cp -R usr/ /
cp -R etc/docker /etc
cp etc/systemd/system/* /etc/systemd/system
 

DEBIAN/postinst: line 6: /usr/share/debconf/confmodule: No such file or directory
vi DEBIAN/postinst
DEBIAN/postinst