Skip to content

More polkit-parsing.sh cleanup

Dylan Aïssi requested to merge wip/daissi/fix-polkit-parsing into apertis/v2025pre
  • polkit-parsing.sh:
    • Adjust system bus socket to /run/dbus/system_bus_socket

      • In Debian system bus socket moved from /var/run/dbus/system_bus_socket to /run/dbus/system_bus_socket, a symlink exists from /var/run/... to /run/... but let's use the real path.
    • Give more time to polkitd to be ready

      • For unknown reasons (race conditions?), pkaction randomly fails with: "Error enumerating actions: GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying" So, to mitigate this issue give it some more time to be ready, although this should be the aim of "gdbus wait"
    • Improve cleanup() to catch unexpected failures and to ignore expected one since polkitd should already be killed in the script body.

    • Drop 'set -x' in cleanup() to reduce noise in the log

Edited by Dylan Aïssi

Merge request reports

Loading