]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/mount.c
core: rework logic to determine when we decide to add automatic deps for mounts
authorLennart Poettering <lennart@poettering.net>
Tue, 29 Nov 2016 21:50:21 +0000 (22:50 +0100)
committerMartin Pitt <martin.pitt@ubuntu.com>
Wed, 14 Dec 2016 09:13:52 +0000 (10:13 +0100)
commitad2706db7cceba69203f3ac2b6ef65d7490c5f29
tree9168f0339fb3af3d592dd9a4fc399070a7ebead1
parent33e28180939bd1e71c3d8322b4e2c3fb338bc2fb
core: rework logic to determine when we decide to add automatic deps for mounts

This adds a concept of "extrinsic" mounts. If mounts are extrinsic we consider
them managed by something else and do not add automatic ordering against
umount.target, local-fs.target, remote-fs.target.

Extrinsic mounts are considered:

- All mounts if we are running in --user mode

- API mounts such as everything below /proc, /sys, /dev, which exist from
  earliest boot to latest shutdown.

- All mounts marked as initrd mounts, if we run on the host

- The initrd's private directory /run/initrams that should survive until last
  reboot.

This primarily merges a couple of different exclusion lists into a single
concept.
src/basic/path-util.h
src/core/mount.c