]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
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)
committerLennart Poettering <lennart@poettering.net>
Sat, 4 Jul 2020 16:48:36 +0000 (18:48 +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.

src/core/automount.c

index 77420b929fd39c0d60b6e52783d7b699a29a28ba..1f0519876653440831df9799e32cb7bdd6ba4be0 100644 (file)
@@ -1085,6 +1085,7 @@ const UnitVTable automount_vtable = {
                 "Unit\0"
                 "Automount\0"
                 "Install\0",
+        .private_section = "Automount",
 
         .can_transient = true,
         .can_fail = true,