diff --git a/config/chroot_local-includes/usr/local/bin/tails-upgrade-frontend-wrapper b/config/chroot_local-includes/usr/local/bin/tails-upgrade-frontend-wrapper index 978958b62b8a057e48a07ef974670f0a37e92a81..c6176a283549a63b8987b45db682ccb303840d4b 100755 --- a/config/chroot_local-includes/usr/local/bin/tails-upgrade-frontend-wrapper +++ b/config/chroot_local-includes/usr/local/bin/tails-upgrade-frontend-wrapper @@ -68,6 +68,11 @@ sleep 30 check_free_memory "$MIN_MEMFREE" "$MIN_TOTAL_MEMFREE" +# Go to a place where everyone, especially Archive::Tar::Wrapper called by +# tails-install-iuk, can chdir back after it has chdir'd elsewhere to do +# its job. +cd / + xhost +SI:localuser:"$RUN_AS_USER" if [ $# -gt 0 ] ; then gksudo -u "$RUN_AS_USER" "/usr/bin/tails-upgrade-frontend $@"