Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Armbian OS #282

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions homeassistant-supervised/DEBIAN/postinst
Expand Up @@ -166,6 +166,14 @@ then
sed -i.bak 's/$/ systemd.unified_cgroup_hierarchy=false/' /boot/firmware/cmdline.txt
touch /var/run/reboot-required
fi
elif [ -f /boot/uEnv.txt ]
then
if ! grep -q "systemd.unified_cgroup_hierarchy=false" /boot/uEnv.txt; then
info "Switching to cgroup v1 and enable apparmor"
cp /boot/uEnv.txt /boot/uEnv.txt.bak
sed -i 's/^APPEND="/&systemd.unified_cgroup_hierarchy=false apparmor=1 security=apparmor /' /boot/uEnv.txt
touch /var/run/reboot-required
fi
else
warn "Could not find /etc/default/grub or /boot/firmware/cmdline.txt failed to switch to cgroup v1"
fi
Expand Down