# Pastebin H0orv42g nested_uc20_transition_to_system_mode() { local recovery_system="$1" local mode="$2" local current_boot_id current_boot_id=$(nested_get_boot_id) nested_exec "sudo snap reboot --$mode $recovery_system" nested_wait_for_reboot "$current_boot_id" }