mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-07-26 22:46:32 +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
|
#!/bin/sh
|
||||||
|
|
||||||
systemctl start mnt-boot.mount
|
systemctl start mnt-boot.mount
|
||||||
systemctl reboot
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=HassOS supervisor
|
Description=HassOS supervisor
|
||||||
Requires=docker.service
|
Requires=docker.service
|
||||||
After=docker.service dbus.socket
|
After=docker.service rauc.service dbus.socket
|
||||||
RequiresMountsFor=/mnt/data
|
RequiresMountsFor=/mnt/data
|
||||||
StartLimitIntervalSec=60
|
StartLimitIntervalSec=60
|
||||||
StartLimitBurst=5
|
StartLimitBurst=5
|
||||||
|
@ -52,7 +52,12 @@ if ls /mnt/config/*.raucb > /dev/null; then
|
|||||||
echo "[Info] Performe a firmware update"
|
echo "[Info] Performe a firmware update"
|
||||||
|
|
||||||
rauc_filename=$(ls /mnt/config/*.raucb | head -n 1)
|
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
|
fi
|
||||||
|
|
||||||
# Cleanup config partition
|
# Cleanup config partition
|
||||||
|
Loading…
x
Reference in New Issue
Block a user