summaryrefslogtreecommitdiff
path: root/man/systemd.special.xml
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-01-21 18:19:08 +0100
committerLennart Poettering <lennart@poettering.net>2020-01-21 20:23:44 +0100
commit44b0d1fd597d7034a995feb385b41a6820f4aac0 (patch)
tree43033103fc19ac8bb827e3ba9d0c289b48fea17a /man/systemd.special.xml
parente3e6f996894f0eea0e766b4194922f5c7235fb01 (diff)
downloadsystemd-44b0d1fd597d7034a995feb385b41a6820f4aac0.tar.gz
core: add implicit ordering dep on blockdev@.target from all mount units
This way we shuld be able to order mounts properly against their backing services in case complex storage is used (i.e. LUKS), even if the device path used for mounting the devices is different from the expected device node of the backing service. Specifically, if we have a LUKS device /dev/mapper/foo that is mounted by this name all is trivial as the relationship can be established a priori easily. But if it is mounted via a /dev/disk/by-uuid/ symlink or similar we only can relate the device node generated to the one mounted at the moment the device is actually established. That's because the UUID of the fs is stored inside the encrypted volume and thus not knowable until the volume is set up. This patch tries to improve on this situation: a implicit After=blockdev@.target dependency is generated for all mounts, based on the data from /proc/self/mountinfo, which should be the actual device node, with all symlinks resolved. This means that as soon as the mount is established the ordering via blockdev@.target will work, and that means during shutdown it is honoured, which is what we are looking for. Note that specifying /etc/fstab entries via UUID= for LUKS devices still sucks and shouldn't be done, because it means we cannot know which LUKS device to activate to make an fs appear, and that means unless the volume is set up at boot anyway we can't really handle things automatically when putting together transactions that need the mount.
Diffstat (limited to 'man/systemd.special.xml')
0 files changed, 0 insertions, 0 deletions