switch_part_command
script to fully enable the Thistle Update Client on your platform. This script is required to instruct the bootloader to boot the “other” partition upon the next reboot cycle. Let’s have a look at a real life example.
Example
The device we want to integrate in this case is a WiFi router, running an existing bootloader (uboot). It is not desired to replace the current bootloader setup, as it is already in place and it can support the functionalities required by the Thistle Update Client.If your system uses OverlayFS, you can use the configuration field
determine_boot_part_script
to help with detection. See the configuration page for more information.switch_part_command
script is required. Here it only represents a single line of bash, to instruct the bootloader to boot partition 1
or 2
depending on what is currently used.
It is recommended to check the bootloader settings to ensure that it will fallback after repeated failed boot sequences.