Skip to content

Commit

Permalink
Fix permission errors from liveinst exit
Browse files Browse the repository at this point in the history
We switched to policykit to run Anaconda on Live media where it is
started by liveuser instead of root. However, the pkexec will run the
same script as root and after anaconda ends, the original script will
continue execution as liveuser which is expected to raise permission
errors.

To fix this, stop the script execution after the pkexec call.

Resolves: rhbz#2314607

Reviewed-by: Ray Strode (halfline)
  • Loading branch information
jkonecny12 committed Oct 23, 2024
1 parent 253c868 commit 50d9b18
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions data/liveinst/liveinst
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ if [ "$(id -u)" -ne 0 ]; then
xhost +si:localuser:root
unset XAUTHORITY
pkexec "$0" "$@"
exit $?
fi

# pkexec clears DBUS_SESSION_BUS_ADDRESS from environment
Expand Down

0 comments on commit 50d9b18

Please sign in to comment.