core: set private section name for automount units
authorDan Callaghan <dan.callaghan@opengear.com>
Fri, 3 Jul 2020 09:13:08 +0000 (19:13 +1000)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 27 Jul 2020 08:26:33 +0000 (10:26 +0200)
Because this was left unset, the unit_write_setting() function was
refusing to write out the automount-specific TimeoutIdleSec= and
DirectoryMode= settings when creating transient automount units.
Set it to the proper value in line with other unit types.

(cherry picked from commit 2fadbb4535108406384a5d63c1ad3082f845c646)

src/core/automount.c

index 99b4eb2c81ad131cdf00ff4623fb4cfe3bb31327..68dc5db71861d1e47750f7c329c579703c6c4885 100644 (file)
@@ -1109,6 +1109,7 @@ const UnitVTable automount_vtable = {
                 "Unit\0"
                 "Automount\0"
                 "Install\0",
+        .private_section = "Automount",
 
         .can_transient = true,
         .can_fail = true,