1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-02 02:21:44 +03:00
systemd/units
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
..
user
user-.slice.d
basic.target
blockdev@.target
bluetooth.target
boot-complete.target
console-getty.service.m4
container-getty@.service.m4
cryptsetup-pre.target
cryptsetup.target
debug-shell.service.in
dev-hugepages.mount
dev-mqueue.mount
emergency.service.in
emergency.target
exit.target
final.target
getty-pre.target
getty.target
getty@.service.m4
graphical.target
halt.target
hibernate.target
hybrid-sleep.target
initrd-cleanup.service
initrd-fs.target
initrd-parse-etc.service
initrd-root-device.target
initrd-root-fs.target
initrd-switch-root.service
initrd-switch-root.target
initrd-udevadm-cleanup-db.service
initrd.target
kexec.target
kmod-static-nodes.service.in
ldconfig.service
local-fs-pre.target
local-fs.target
machine.slice
machines.target
meson-add-wants.sh
meson.build homed: explicitly deactivate all home directories on shutdown 2020-09-30 14:37:52 +02:00
modprobe@.service
multi-user.target
network-online.target
network-pre.target
network.target
nss-lookup.target
nss-user-lookup.target
paths.target
poweroff.target
printer.target
proc-sys-fs-binfmt_misc.automount
proc-sys-fs-binfmt_misc.mount
quotaon.service.in
rc-local.service.in
reboot.target
remote-cryptsetup.target
remote-fs-pre.target
remote-fs.target
rescue.service.in
rescue.target
rpcbind.target
serial-getty@.service.m4
shutdown.target
sigpwr.target
sleep.target
slices.target
smartcard.target
sockets.target
sound.target
suspend-then-hibernate.target
suspend.target
swap.target
sys-fs-fuse-connections.mount
sys-kernel-config.mount
sys-kernel-debug.mount
sys-kernel-tracing.mount
sysinit.target
syslog.socket
system-systemd\x2dcryptsetup.slice
system-update-cleanup.service
system-update-pre.target
system-update.target
systemd-ask-password-console.path
systemd-ask-password-console.service
systemd-ask-password-wall.path
systemd-ask-password-wall.service
systemd-backlight@.service.in
systemd-binfmt.service.in
systemd-bless-boot.service.in
systemd-boot-check-no-failures.service.in
systemd-boot-system-token.service
systemd-coredump.socket
systemd-coredump@.service.in
systemd-exit.service
systemd-firstboot.service
systemd-fsck-root.service.in
systemd-fsck@.service.in
systemd-halt.service
systemd-hibernate-resume@.service.in
systemd-hibernate.service.in
systemd-homed-activate.service homed: explicitly deactivate all home directories on shutdown 2020-09-30 14:37:52 +02:00
systemd-homed.service.in homed: explicitly deactivate all home directories on shutdown 2020-09-30 14:37:52 +02:00
systemd-hostnamed.service.in
systemd-hwdb-update.service.in
systemd-hybrid-sleep.service.in
systemd-importd.service.in
systemd-initctl.service.in
systemd-initctl.socket
systemd-journal-catalog-update.service
systemd-journal-flush.service
systemd-journal-gatewayd.service.in
systemd-journal-gatewayd.socket
systemd-journal-remote.service.in
systemd-journal-remote.socket
systemd-journal-upload.service.in
systemd-journald-audit.socket
systemd-journald-dev-log.socket
systemd-journald-varlink@.socket
systemd-journald.service.in
systemd-journald.socket
systemd-journald@.service.in
systemd-journald@.socket
systemd-kexec.service
systemd-localed.service.in
systemd-logind.service.in
systemd-machine-id-commit.service
systemd-machined.service.in
systemd-modules-load.service.in
systemd-network-generator.service.in
systemd-networkd-wait-online.service.in
systemd-networkd.service.in
systemd-networkd.socket
systemd-nspawn@.service.in
systemd-portabled.service.in
systemd-poweroff.service
systemd-pstore.service.in
systemd-quotacheck.service.in
systemd-random-seed.service.in
systemd-reboot.service
systemd-remount-fs.service.in
systemd-repart.service.in
systemd-resolved.service.in
systemd-rfkill.service.in
systemd-rfkill.socket
systemd-suspend-then-hibernate.service.in
systemd-suspend.service.in
systemd-sysctl.service.in
systemd-sysusers.service
systemd-time-wait-sync.service.in
systemd-timedated.service.in
systemd-timesyncd.service.in
systemd-tmpfiles-clean.service
systemd-tmpfiles-clean.timer
systemd-tmpfiles-setup-dev.service
systemd-tmpfiles-setup.service
systemd-udev-settle.service
systemd-udev-trigger.service
systemd-udevd-control.socket
systemd-udevd-kernel.socket
systemd-udevd.service.in
systemd-update-done.service.in
systemd-update-utmp-runlevel.service.in
systemd-update-utmp.service.in
systemd-user-sessions.service.in
systemd-userdbd.service.in
systemd-userdbd.socket
systemd-vconsole-setup.service.in
systemd-volatile-root.service.in
time-set.target
time-sync.target
timers.target
tmp.mount
umount.target
usb-gadget.target
user-runtime-dir@.service.in
user.slice
user@.service.in
var-lib-machines.mount