-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
homed: explicitly deactivate all home directories on shutdown #17113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
3ae73ee to
1dd272e
Compare
man/homectl.xml
Outdated
| <listitem><para>Execute the <command>deactivate</command> command on all active home directories at | ||
| once. This operation is generally executed on system shutdown (i.e. by <command>systemctl | ||
| poweroff</command> and related commands), to ensure all active user's home directories are fully | ||
| shutdown before <filename>/home/</filename> and related file systems are unmounted.</para></listitem> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"shut down"
1dd272e to
c4977c9
Compare
|
Force pushed new version. Only changes are the suggested ones. Taking liberty to upgrade green label |
|
This docs test is really nice |
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: systemd#16842
|
force pushed new version. Only change: added the missing dbus iface docs. Setting green label, since change is so minimal |
c4977c9 to
f2a1146
Compare
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