Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8037

Advanced users • Enable watchdog while using autoboot.txt

$
0
0
I'm testing the autoboot.txt flow for an A/B update scheme. From my custom distro (which uses systemd) I can trigger the tryboot flag with

Code:

echo "0 tryboot" > /run/systemd/reboot-paramsystemctl reboot
The content of my autoboot.txt (in the first partition) is:

Code:

[all]tryboot_a_b=1boot_partition=2[tryboot]boot_partition=3
Without the tryboot flag, the system correctly boots from partition 2; if the tryboot flag is set the system tries to boot from partition 3. However, in my case partition 3 is still empty, and the system is then stuck until it's externally reset (then it goes back to booting from partition 2). Is there a way to enable a watchdog or another automatic rollback mechanism in case of a faulted partition with the tryboot?

Statistics: Posted by larena — Mon Feb 17, 2025 12:42 pm



Viewing all articles
Browse latest Browse all 8037

Trending Articles