Skip to content
Snippets Groups Projects
Commit bbddef27 authored by Denis Pynkin's avatar Denis Pynkin
Browse files

lib: fix the catch of AUM crash


AUM crash is detected as unexpected AUM restart. However due
races on startup the cursor for logs check may catch the expected
restart and treat it as unexpected.
Reset the log cursor to check events occurred during update only.

Signed-off-by: default avatarDenis Pynkin <denis.pynkin@collabora.com>
parent 140debb5
No related branches found
No related tags found
1 merge request!26T7239: test of bootloader's bootcounter mechanism
......@@ -121,6 +121,10 @@ apply_update_sync()
# and if the handler quits, AUM reboots. And if AUM reboots, LAVA timeouts.
nohup updatectl --register-upgrade-handler & UPGRADEHANDLERPID=$!
# Update the cursor to catch events after restart
CURSOR="$(journalctl --show-cursor -n 0 -o cat)"
CURSOR="${CURSOR#-- cursor: }"
# Applying update is asynchronous, updatectl spawns the update and returns immediately
if [ -n "$OTA" ]; then
apply_update_async
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment