Verified Commit 9da06052 authored by Karel Koci's avatar Karel Koci 🤘 Committed by Karel Koci

Move journal rescue init script from pkgupdate to supervisor

It makes much more sense to have it part of supervisor as a software
that handles automatic updater execution.
parent ca80ded4
#!/bin/sh /etc/rc.common
# This script handles updater-ng immediate reboot recovery. After an immediate
# reboot there is going to be a journal and we should continue execution from it
# as soon as possible.
START=85
status() {
......@@ -9,9 +13,11 @@ status() {
start() {
# Recover updater's journal if it exists
if [ -e "/usr/share/updater/journal" ]; then
# If journal recovery is successful then updater should be run again
# because it might not be finished because of replan package option.
opkg-trans -s dbg -j && updater.sh
# Note: supervisor runs pkgupdate that recovers run from journal and later
# checks for update. This update is required because there could have been
# replan planned after reboot and this ensures that we do replan as soon
# as possible.
updater-supervisor
fi
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment