if [[ $(</proc/cmdline) =~ partition_ab= ]]
then
- systemctl isolate default.target
+ # Finalize upgrade right after RW-Upgrade
+ #
+ # It's possible to start upgraded system and check if there are any errors
+ # there. This allows doing checking at later point of time, potentially
+ # catching more errors from new system (eg. some apps failing to start
+ # after upgrade). Current approach is to commit data after upgrade scripts
+ # succeeds, which simply means that system is guaranted to be upgraded even
+ # if some of the apps would fail.
+ /usr/share/upgrade/update-finalize.sh
+ # systemctl isolate default.target
else
reboot -f
fi