mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-07-28 15:36:29 +00:00
Reboot after mark partition as bad
This commit is contained in:
parent
49df049f2c
commit
1a3d063fec
@ -9,9 +9,11 @@ function mark_good() {
|
|||||||
|
|
||||||
function mark_bad() {
|
function mark_bad() {
|
||||||
rauc status mark-bad
|
rauc status mark-bad
|
||||||
exit 0
|
systemctl reboot
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#### Check system ####
|
||||||
|
|
||||||
# Docker state
|
# Docker state
|
||||||
if ! systemctl -q is-active docker; then
|
if ! systemctl -q is-active docker; then
|
||||||
mark_bad
|
mark_bad
|
||||||
@ -23,4 +25,3 @@ if ! systemctl -q is-active hassos-supervisor; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
mark_good
|
mark_good
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user