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

Robert Schwebel r.schwebel at pengutronix.de
Mon Jun 1 12:16:41 PDT 2015


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.
---
 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;
 }


More information about the systemd-devel mailing list