Systemd/src
Lennart Poettering d1f6e01e47 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
2020-09-30 14:37:52 +02:00
..
ac-power
activate various: remove assignments of unread variables 2020-09-22 17:58:11 +02:00
analyze tree-wide: define iterator inside of the macro 2020-09-08 12:14:05 +02:00
ask-password
backlight various: remove assignments of unread variables 2020-09-22 17:58:11 +02:00
basic Merge pull request #17199 from poettering/log-tid 2020-09-30 10:28:51 +02:00
binfmt
boot bootctl: handle if LoaderSystemToken is invalid for some reason 2020-09-14 21:33:31 +02:00
busctl busctl: add missing shortopt -l 2020-09-15 09:38:10 +02:00
cgls bus: use bus_log_connect_error to print error message 2020-07-21 10:02:01 +09:00
cgroups-agent
cgtop tree-wide: define iterator inside of the macro 2020-09-08 12:14:05 +02:00
core core: move reset_arguments() to the end of main's finish 2020-09-28 12:39:30 +02:00
coredump coredump: don't convert s → µs twice 2020-09-02 08:11:07 +02:00
cryptsetup cryptsetup-generator: avoid magic value in ternary 2020-09-24 11:19:40 -04:00
debug-generator
delta Merge pull request #16635 from keszybz/do-not-for-each-word 2020-09-09 17:43:38 +02:00
detect-virt
dissect dissect-image: process /usr/ GPT partition type 2020-09-19 21:19:51 +02:00
environment-d-generator
escape tree-wide: correct cases where return log_{error,warning} is used without value 2020-09-08 17:40:46 +02:00
firstboot Add a helper function that does make_salt+crypt_r 2020-09-15 09:30:56 +02:00
fsck
fstab-generator fstab-generator: add 'nofail' when NFS 'bg' option is used 2020-09-15 16:24:01 +02:00
fuzz
getty-generator getty-generator: use extract_first_word() 2020-09-09 09:34:54 +02:00
gpt-auto-generator dissect: wrap verity settings in new VeritySettings structure 2020-09-17 20:36:23 +09:00
hibernate-resume
home homed: explicitly deactivate all home directories on shutdown 2020-09-30 14:37:52 +02:00
hostname tree-wide: don't needlessly negate error number passed to bus_error_message() 2020-09-14 21:42:22 +02:00
hwdb
id128
import Add CLOSE_AND_REPLACE helper 2020-09-18 15:28:48 +02:00
initctl tree-wide: don't needlessly negate error number passed to bus_error_message() 2020-09-14 21:42:22 +02:00
journal Rename find_binary to find_executable 2020-09-18 15:28:48 +02:00
journal-remote Removing unused n_fields in journal-gatewayd 2020-09-28 12:18:17 +02:00
kernel-install Merge pull request #16777 from DaanDeMeyer/kernel-install-followup 2020-08-25 09:30:44 +02:00
libsystemd Merge pull request #17130 from keszybz/static-analyzer-cleanups 2020-09-23 13:23:56 +02:00
libsystemd-network sd-dhcp6-client: Fix sending prefix delegation request (#17136) 2020-09-24 17:04:52 +02:00
libudev tree-wide: define iterator inside of the macro 2020-09-08 12:14:05 +02:00
locale tree-wide: don't needlessly negate error number passed to bus_error_message() 2020-09-14 21:42:22 +02:00
login loginctl: add -P as short for --value --property= 2020-09-30 10:25:06 +02:00
machine tree-wide: port remaining umount() calls to umount_verbose() 2020-09-23 18:57:37 +02:00
machine-id-setup
modules-load
mount bus: use bus_log_connect_error to print error message 2020-07-21 10:02:01 +09:00
network network: limit InitialCongestionWindow= and InitialAdvertisedReceiveWindow= value 2020-09-29 13:55:17 +09:00
notify
nspawn mount-util: rework umount_verbose() to take log level and flags arg 2020-09-23 18:57:36 +02:00
nss-myhostname
nss-mymachines nss-mymachines: drop support for UID/GID resolving 2020-07-14 17:08:12 +02:00
nss-resolve nss-resolve: port over to new varlink interface 2020-08-26 16:48:16 +02:00
nss-systemd shared: merge {user,group}-record-nss.{c,h} 2020-09-01 16:48:40 +02:00
partition repart: use proper API to check if block device can do partition scanning 2020-09-26 18:31:48 +02:00
path sd-path: include 'search' in search pathnames 2020-09-23 10:08:44 +02:00
portable dissect: wrap verity settings in new VeritySettings structure 2020-09-17 20:36:23 +09:00
pstore
quotacheck
random-seed
rc-local-generator meson: RC_LOCAL_SCRIPT_PATH_START to RC_LOCAL_PATH 2020-09-15 17:44:26 +02:00
remount-fs
reply-password
resolve Merge pull request #17203 from poettering/resolv-conf-mode 2020-09-30 14:37:24 +02:00
rfkill
run run: let systemd resolve the path with RootDirectory=/RootImage= 2020-09-23 14:49:37 +02:00
run-generator
shared seccomp-util: add cacheflush() syscall to @default syscall set 2020-09-30 10:08:15 +02:00
shutdown shutdown: also fsync() DM devices before going down 2020-09-23 18:33:48 +02:00
sleep sleep: reword some debug messages 2020-09-08 17:40:46 +02:00
socket-proxy socket-proxy: allow localhost addresses 2020-09-15 16:45:39 +02:00
stdio-bridge
sulogin-shell
sysctl tree-wide: define iterator inside of the macro 2020-09-08 12:14:05 +02:00
system-update-generator
systemctl exec: SystemCallLog= directive 2020-09-15 12:54:17 +03:00
systemd Merge pull request #16998 from zonque/networkd/mdb 2020-09-15 16:30:39 +09:00
sysusers sysusers: use "!*" instead of "!!" as an invalid group password 2020-09-30 10:21:40 +02:00
sysv-generator tree-wide: define iterator inside of the macro 2020-09-08 12:14:05 +02:00
test dns-domain: add helper that checks whether domain is dot suffixed 2020-09-29 12:09:16 +02:00
time-wait-sync basic/time-util: add function to format timestamps with different styles 2020-08-19 15:30:13 +01:00
timedate Replace gendered pronouns with gender neutral ones. (#16844) 2020-08-27 11:52:48 +09:00
timesync timesyncd: don't attempt to call IP_TOS sockopt on IPv6 sockets 2020-09-11 10:16:39 +02:00
tmpfiles tree-wide: fix typos found by codespell 2020-09-14 15:32:37 +02:00
tty-ask-password-agent tree-wide: define iterator inside of the macro 2020-09-08 12:14:05 +02:00
udev udevadm: do not ignroe error caused by unpriviledged user invoking the command 2020-09-29 21:44:10 +02:00
update-done tree-wide: correct cases where return log_{error,warning} is used without value 2020-09-08 17:40:46 +02:00
update-utmp tree-wide: correct cases where return log_{error,warning} is used without value 2020-09-08 17:40:46 +02:00
user-sessions
userdb shared: merge {user,group}-record-nss.{c,h} 2020-09-01 16:48:40 +02:00
vconsole vconsole-setup: downgrade log message when setting font fails on dummy console 2020-07-20 08:15:50 +02:00
veritysetup shared: rename crypt-util.c → cryptsetup-util.c 2020-09-02 15:00:32 +02:00
version
volatile-root mount-util: rework umount_verbose() to take log level and flags arg 2020-09-23 18:57:36 +02:00
xdg-autostart-generator Rename find_binary to find_executable 2020-09-18 15:28:48 +02:00