Set hassos supervisor to rauc (#55)

* Set hassos supervisor to rauc

* Update post-install

* Update hassos-config
This commit is contained in:
Pascal Vizeli 2018-06-29 15:23:49 +02:00 committed by GitHub
parent 8dd8816e4e
commit dde6d8f806
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 3 deletions

View File

@ -1,4 +1,3 @@
#!/bin/sh
systemctl start mnt-boot.mount
systemctl reboot

View File

@ -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

View File

@ -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