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:
@@ -0,0 +1,2 @@
|
||||
[Unit]
|
||||
FailureAction=reboot
|
||||
@@ -0,0 +1,2 @@
|
||||
[Service]
|
||||
TasksMax=infinity
|
||||
@@ -1 +0,0 @@
|
||||
/usr/lib/systemd/system/rauc-mark.timer
|
||||
@@ -1,9 +0,0 @@
|
||||
[Unit]
|
||||
Description=HassOS rauc good
|
||||
RefuseManualStart=true
|
||||
RefuseManualStop=true
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/libexec/hassos-rate
|
||||
RemainAfterExit=true
|
||||
@@ -1,8 +0,0 @@
|
||||
[Unit]
|
||||
Description=HassOS mark boot partition as good
|
||||
|
||||
[Timer]
|
||||
OnBootSec=1min
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user