summaryrefslogtreecommitdiff
path: root/units/meson.build
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-09-21 18:25:46 +0200
committerLennart Poettering <lennart@poettering.net>2020-09-30 14:37:52 +0200
commitd1f6e01e4743ae94740314eeb46a162112ef4599 (patch)
treedcf2a1d9ea84f17554b398f04b522179c624932e /units/meson.build
parent626fb9f30195f2b6b25bb1e778096c6e2348ad83 (diff)
downloadsystemd-d1f6e01e4743ae94740314eeb46a162112ef4599.tar.gz
homed: explicitly deactivate all home directories on shutdown
Let's explicitly deactivate all home dirs on shutdown, in order to properly synchronizing unmounting and avoiding blocking devices. Previously, we'd rely on automatic deactivation when home directories become unused. However, that scheme is asynchronous, and ongoing deactviations might conflicts with attempts to unmount /home. Let's fix that by providing an explicit service systemd-homed-activate.service whose only job is to have a ExecStop= line that explicitly deactivates all home directories on shutdown. This service can the be ordered after home.mount and similar, ensuring that we'll first deactivate all homes before deactivating /home itself during shutdown. This is kept separate from systemd-homed.service so that it is possible to restart systemd-homed.service without deactivating all home directories. Fixes: #16842
Diffstat (limited to 'units/meson.build')
-rw-r--r--units/meson.build1
1 files changed, 1 insertions, 0 deletions
diff --git a/units/meson.build b/units/meson.build
index 275daad3f4..08c39c99b3 100644
--- a/units/meson.build
+++ b/units/meson.build
@@ -102,6 +102,7 @@ units = [
['systemd-firstboot.service', 'ENABLE_FIRSTBOOT',
'sysinit.target.wants/'],
['systemd-halt.service', ''],
+ ['systemd-homed-activate.service', 'ENABLE_HOMED'],
['systemd-initctl.socket', 'HAVE_SYSV_COMPAT',
'sockets.target.wants/'],
['systemd-journal-catalog-update.service', '',