Fix switch to cgroup v1 for Debian 11 on Raspberry Pi (#240)
There was wrong path used, as `/boot/cmdline.txt` is only used on Rapbian or RaspiOS which are not supported .
This commit is contained in:
parent
46ec13fd49
commit
0779e8d745
1 changed files with 5 additions and 6 deletions
|
@ -150,16 +150,15 @@ then
|
||||||
update-grub
|
update-grub
|
||||||
touch /var/run/reboot-required
|
touch /var/run/reboot-required
|
||||||
fi
|
fi
|
||||||
elif [ -f /boot/cmdline.txt ]
|
elif [ -f /boot/firmware/cmdline.txt ]
|
||||||
then
|
then
|
||||||
if ! grep -q "systemd.unified_cgroup_hierarchy=false" /boot/cmdline.txt; then
|
if ! grep -q "systemd.unified_cgroup_hierarchy=false" /boot/firmware/cmdline.txt; then
|
||||||
info "Switching to cgroup v1"
|
info "Switching to cgroup v1"
|
||||||
cp /boot/cmdline.txt /boot/cmdline.txt.bak
|
sed -i.bak 's/$/ systemd.unified_cgroup_hierarchy=false/' /boot/firmware/cmdline.txt
|
||||||
sed -i 's/$/ systemd.unified_cgroup_hierarchy=false/' /boot/cmdline.txt
|
|
||||||
touch /var/run/reboot-required
|
touch /var/run/reboot-required
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
warn "Could not find /etc/default/grub or /boot/cmdline.txt failed to switch to cgroup v1"
|
warn "Could not find /etc/default/grub or /boot/firmware/cmdline.txt failed to switch to cgroup v1"
|
||||||
fi
|
fi
|
||||||
info "Within a few minutes you will be able to reach Home Assistant at:"
|
info "Within a few minutes you will be able to reach Home Assistant at:"
|
||||||
info "http://homeassistant.local:8123 or using the IP address of your"
|
info "http://homeassistant.local:8123 or using the IP address of your"
|
||||||
|
|
Loading…
Reference in a new issue