[systemd-devel] [PATCH] mount-setup: create /run/systemd/netif/links/ before accessing

Tom Gundersen teg at jklm.no
Tue Jun 2 08:43:46 PDT 2015


On Mon, Jun 1, 2015 at 9:16 PM, Robert Schwebel
<r.schwebel at pengutronix.de> wrote:
> systemd-timesyncd breaks with
>
>   Starting Network Time Synchronization...
>   [FAILED] Failed to start Network Time Synchronization.
>
> when we have timesyncd activated and systemd-networkd not. Create
> directory before using it.

Hm, this is surely the wrong fix. PID1 should not know about
networkd/timesyncd. Either this should be created by a tmpfiles
fragment, or timesyncd should learn not to care about missing
networkd.

-t

> ---
>  src/core/mount-setup.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/src/core/mount-setup.c b/src/core/mount-setup.c
> index ba96741e9549..25412a1c42d3 100644
> --- a/src/core/mount-setup.c
> +++ b/src/core/mount-setup.c
> @@ -393,6 +393,8 @@ int mount_setup(bool loaded_policy) {
>          mkdir_label("/run/systemd", 0755);
>          mkdir_label("/run/systemd/system", 0755);
>          mkdir_label("/run/systemd/inaccessible", 0000);
> +       mkdir_label("/run/systemd/netif", 0755);
> +       mkdir_label("/run/systemd/netif/links", 0755);
>
>          return 0;
>  }
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel


More information about the systemd-devel mailing list