Ask to shutdown the template after performing update

Fixes QubesOS/qubes-issues#2431
This commit is contained in:
Marek Marczykowski-Górecki 2016-11-12 22:27:20 +01:00
parent 7fa4115aba
commit 6ba1d2ff78
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -15,7 +15,7 @@ elif [ -e /etc/arch-release ]; then
else
update_cmd='echo Unsupported distribution, install updates manually; bash -i'
fi
xterm -title update -e su -l -c "$update_cmd; echo Done. Press Enter to exit.; read x"
xterm -title update -e su -l -c "$update_cmd; echo Done.; echo Press Enter to shutdown the template, or Ctrl-C to just close this window; read x && poweroff;"
# Notify dom0 about installed updates
su -c 'service qubes-update-check start'