resolvconf as DNS manager doesn't work when IWD is launched as systemd service

Task Info (Flyspray)
Opened By Vuk Mirovic (wooque)
Task ID 67069
Type Bug Report
Project Community Packages
Category Packages
Version None
OS All
Opened 2020-06-22 00:20:33 UTC
Status Assigned
Assignee Andreas Radke (AndyRTR)
Assignee Christian Rebischke (Shibumi)
Assignee Levente Polyak (anthraxx)

Details

Description:

I'm using simple configuration

[General] EnableNetworkConfiguration=true [Network] NameResolvingService=resolvconf

when I launch iwd manually with "sudo /usr/lib/iwd/iwd" everything works fine, but when I launch systemd service there is error

iwd[4113]: Cannot write to /run/resolvconf/lock iwd[4004]: resolve: /usr/bin/resolvconf exited with status (256).

I manage to fix this by setting ProtectSystem to true instead of strict in systemd service file

Additional info:

  • package version(s)

1.8-1

  • config and/or log files etc.

[General] EnableNetworkConfiguration=true [Network] NameResolvingService=resolvconf

  • link to upstream bug report, if any

Steps to reproduce:

Start iwd systemd service with this config and observe DNS resolving not working