mount: make sure we unmount tmpfs mounts before we deactivate swaps (#7076)
authorMichal Sekletar <msekletar@users.noreply.github.com>
Mon, 16 Oct 2017 14:15:05 +0000 (16:15 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 16 Oct 2017 14:15:05 +0000 (16:15 +0200)
commitfab35afabf01a5dea651187a1ccb5ae7cd778f9d
tree782bd51c511523c1d7e18152021fc9f62db24df0
parent0051ca1f63e6d9c481e3b5f989e72ff538b17daa
mount: make sure we unmount tmpfs mounts before we deactivate swaps (#7076)

In the past we introduced this property just for tmp.mount. However on
todays systems usually there are many more tmpfs mounts. Most notably
mounts backing XDG_RUNTIME_DIR for each user.

Let's generalize what we already have for tmp.mount and implement the
ordering After=swap.target for all tmpfs based mounts.
src/core/dbus-mount.c
src/core/mount.c
src/core/mount.h
units/tmp.mount