chiark / gitweb /
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)
committerSven Eden <yamakuzure@gmx.net>
Mon, 17 Jul 2017 15:58:35 +0000 (17:58 +0200)
commitaa63b97173e12293234cce3b378912eb761778e1
tree46717fc394dc5a404fb178fb841d2719ec119af7
parentb9dddf7b71c87ab4f58cd6087a6ad3d72867cf9b
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