Change rauc mark handling

This commit is contained in:
Pascal Vizeli
2018-06-16 09:06:07 +00:00
parent c657f6f3e7
commit 49df049f2c
11 changed files with 36 additions and 15 deletions

View File

@@ -0,0 +1,26 @@
#!/bin/sh
set -e
function mark_good() {
rauc status mark-good
exit 0
}
function mark_bad() {
rauc status mark-bad
exit 0
}
# Docker state
if ! systemctl -q is-active docker; then
mark_bad
fi
# Docker state
if ! systemctl -q is-active hassos-supervisor; then
mark_bad
fi
mark_good