Commit 8c1bc8ab authored by Jan Rybar's avatar Jan Rybar

Error message raised on every 'systemctl start' in emergency.target

Superuser should know that polkit is not running in emergency.target.
If not, basic info with debug sources is offered instead of error message.
Other usecases taken into account.
parent b1cc525f
......@@ -160,7 +160,8 @@ main (int argc, char *argv[])
authority = polkit_authority_get_sync (NULL /* GCancellable* */, &error);
if (authority == NULL)
{
g_printerr ("Error getting authority: %s (%s, %d)\n",
g_printerr ("Authorization not available. Check if polkit service is running or see debug message for more information.\n");
g_debug ("Error getting authority: %s (%s, %d)\n",
error->message, g_quark_to_string (error->domain), error->code);
g_error_free (error);
ret = 127;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment