mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-07-24 13:36:31 +00:00
Set hassos supervisor to rauc (#55)
* Set hassos supervisor to rauc * Update post-install * Update hassos-config
This commit is contained in:
parent
8dd8816e4e
commit
dde6d8f806
@ -1,4 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
systemctl start mnt-boot.mount
|
||||
systemctl reboot
|
||||
|
@ -1,7 +1,7 @@
|
||||
[Unit]
|
||||
Description=HassOS supervisor
|
||||
Requires=docker.service
|
||||
After=docker.service dbus.socket
|
||||
After=docker.service rauc.service dbus.socket
|
||||
RequiresMountsFor=/mnt/data
|
||||
StartLimitIntervalSec=60
|
||||
StartLimitBurst=5
|
||||
|
@ -52,7 +52,12 @@ if ls /mnt/config/*.raucb > /dev/null; then
|
||||
echo "[Info] Performe a firmware update"
|
||||
|
||||
rauc_filename=$(ls /mnt/config/*.raucb | head -n 1)
|
||||
rauc install /mnt/config/$rauc_filename
|
||||
if rauc install /mnt/config/$rauc_filename; then
|
||||
echo "[Info] Firmware update success"
|
||||
systemctl reboot
|
||||
else
|
||||
echo "[Error] Firmware update fails"
|
||||
fi
|
||||
fi
|
||||
|
||||
# Cleanup config partition
|
||||
|
Loading…
x
Reference in New Issue
Block a user