core: switch var-tmp.mount to WantsMountsFor for PrivateTmp=yes

Align with tmp.mount
This commit is contained in:
Luca Boccassi
2023-11-29 11:04:59 +00:00
parent 46d45f90b3
commit 8284c2cb68
+1 -1
View File
@@ -1335,7 +1335,7 @@ int unit_add_exec_dependencies(Unit *u, ExecContext *c) {
if (r < 0)
return r;
r = unit_add_mounts_for(u, "/var/tmp", UNIT_DEPENDENCY_FILE, UNIT_MOUNT_REQUIRES);
r = unit_add_mounts_for(u, "/var/tmp", UNIT_DEPENDENCY_FILE, UNIT_MOUNT_WANTS);
if (r < 0)
return r;