New supervisor / Adjust rauc handling (#530)

* OS: Update supervisor 194

* Remove old rauc mark code

* OS: Update supervisor 195

* Adjust dockerd
This commit is contained in:
Pascal Vizeli
2020-01-09 23:02:46 +01:00
committed by GitHub
parent 7b379e648c
commit febc4473d3
21 changed files with 18 additions and 69 deletions

View File

@@ -0,0 +1,2 @@
[Unit]
FailureAction=reboot

View File

@@ -0,0 +1,2 @@
[Service]
TasksMax=infinity

View File

@@ -1 +0,0 @@
/usr/lib/systemd/system/rauc-mark.timer

View File

@@ -1,9 +0,0 @@
[Unit]
Description=HassOS rauc good
RefuseManualStart=true
RefuseManualStop=true
[Service]
Type=oneshot
ExecStart=/usr/libexec/hassos-rate
RemainAfterExit=true

View File

@@ -1,8 +0,0 @@
[Unit]
Description=HassOS mark boot partition as good
[Timer]
OnBootSec=1min
[Install]
WantedBy=timers.target

View File

@@ -1,28 +0,0 @@
#!/bin/sh
# shellcheck disable=SC2112
set -e
function mark_good() {
rauc status mark-good
exit 0
}
function mark_bad() {
rauc status mark-bad
systemctl reboot
}
#### Check system ####
# Docker state
if systemctl -q is-failed docker; then
mark_bad
fi
# Docker state
if systemctl -q is-failed hassos-supervisor; then
mark_bad
fi
mark_good