ci: Don't install fake pkexec in toolbox image

The mutter image already replaces `pkexec` with a symlink to
`sudo`, which does the same job as the `su` wrapper.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2850>
This commit is contained in:
Florian Müllner 2023-07-21 00:44:18 +02:00 committed by Marge Bot
parent eeea52760a
commit 34a33467f7

View File

@ -40,14 +40,6 @@ build_container() {
buildah run $build_cntr dnf clean all buildah run $build_cntr dnf clean all
buildah run $build_cntr rm -rf /var/lib/cache/dnf buildah run $build_cntr rm -rf /var/lib/cache/dnf
# work around non-working pkexec
local fake_pkexec=$(mktemp)
cat > $fake_pkexec <<-'EOF'
#!/bin/sh
exec su -c "$*"
EOF
buildah copy --chmod 755 $build_cntr $fake_pkexec /usr/bin/pkexec
# disable gnome-keyring activation: # disable gnome-keyring activation:
# it either asks for unlocking the login keyring on startup, or it detects # it either asks for unlocking the login keyring on startup, or it detects
# the running host daemon and doesn't export the object on the bus, which # the running host daemon and doesn't export the object on the bus, which