From d20a328f97ae3709342f6176e6e54ee12e26f321 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Sun, 5 Feb 2017 16:27:38 -0500 Subject: [PATCH] build-sys,man: describe systemd-umount and hook it up to installation (#5227) --- Makefile-man.am | 5 +++++ Makefile.am | 9 +++++++++ man/systemd-mount.xml | 20 +++++++++++++++++++- src/mount/mount-tool.c | 2 +- 4 files changed, 34 insertions(+), 2 deletions(-) diff --git a/Makefile-man.am b/Makefile-man.am index c47bedd0df3..6f59658445b 100644 --- a/Makefile-man.am +++ b/Makefile-man.am @@ -481,6 +481,7 @@ MANPAGES_ALIAS += \ man/systemd-udevd-control.socket.8 \ man/systemd-udevd-kernel.socket.8 \ man/systemd-udevd.8 \ + man/systemd-umount.1 \ man/systemd-update-done.8 \ man/systemd-user.conf.5 \ man/systemd-volatile-root.8 \ @@ -837,6 +838,7 @@ man/systemd-tmpfiles-setup.service.8: man/systemd-tmpfiles.8 man/systemd-udevd-control.socket.8: man/systemd-udevd.service.8 man/systemd-udevd-kernel.socket.8: man/systemd-udevd.service.8 man/systemd-udevd.8: man/systemd-udevd.service.8 +man/systemd-umount.1: man/systemd-mount.1 man/systemd-update-done.8: man/systemd-update-done.service.8 man/systemd-user.conf.5: man/systemd-system.conf.5 man/systemd-volatile-root.8: man/systemd-volatile-root.service.8 @@ -1787,6 +1789,9 @@ man/systemd-udevd-kernel.socket.html: man/systemd-udevd.service.html man/systemd-udevd.html: man/systemd-udevd.service.html $(html-alias) +man/systemd-umount.html: man/systemd-mount.html + $(html-alias) + man/systemd-update-done.html: man/systemd-update-done.service.html $(html-alias) diff --git a/Makefile.am b/Makefile.am index c87c547e05c..9a435e3a662 100644 --- a/Makefile.am +++ b/Makefile.am @@ -673,6 +673,15 @@ EXTRA_DIST += \ @INTLTOOL_POLICY_RULE@ +systemd-mount-install-hook: + -$(LN_S) systemd-mount $(DESTDIR)$(bindir)/systemd-umount + +systemd-mount-uninstall-hook: + -rm $(DESTDIR)$(bindir)/systemd-umount + +INSTALL_EXEC_HOOKS += systemd-mount-install-hook +UNINSTALL_EXEC_HOOKS += systemd-mount-uninstall-hook + # ------------------------------------------------------------------------------ MANPAGES = diff --git a/man/systemd-mount.xml b/man/systemd-mount.xml index 06b7c85bd83..ab85dc56400 100644 --- a/man/systemd-mount.xml +++ b/man/systemd-mount.xml @@ -45,7 +45,8 @@ systemd-mount - Establish a mount or auto-mount point transiently + systemd-umount + Establish and destroy transient mount or auto-mount points @@ -60,6 +61,11 @@ OPTIONS + + systemd-umount + OPTIONS + WHERE + @@ -91,6 +97,9 @@ Use the command to show a terse table of all local, known block devices with file systems that may be mounted with this command. + + systemd-umount can be used to unmount a mount or automount point. It is the same + as systemd-mount . @@ -239,6 +248,15 @@ such as labels, etc. + + + + + Stop the mount and automount units corresponding to the specified mount points + WHERE. + + + diff --git a/src/mount/mount-tool.c b/src/mount/mount-tool.c index e66c2fe5f30..a2777240299 100644 --- a/src/mount/mount-tool.c +++ b/src/mount/mount-tool.c @@ -100,7 +100,7 @@ static void help(void) { " Set automount unit property\n" " --bind-device Bind automount unit to device\n" " --list List mountable block devices\n" - " -u --umount Unmount a mount point\n" + " -u --umount Unmount mount points\n" , program_invocation_short_name); } -- 2.39.5