From 34645144570c4441dc1a9360114f6af53ff84098 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 31 Mar 2021 17:18:25 +0200 Subject: man: document new initrd-usr-fs.target --- man/systemd.special.xml | 40 +++++++++++++++++++++++++++++----------- 1 file changed, 29 insertions(+), 11 deletions(-) diff --git a/man/systemd.special.xml b/man/systemd.special.xml index c9f320935d..73fd1dcc94 100644 --- a/man/systemd.special.xml +++ b/man/systemd.special.xml @@ -46,6 +46,7 @@ initrd-fs.target, initrd-root-device.target, initrd-root-fs.target, + initrd-usr-fs.target, kbrequest.target, kexec.target, local-fs-pre.target, @@ -372,12 +373,13 @@ initrd-fs.target systemd-fstab-generator3 - automatically adds dependencies of type - Before= to - sysroot-usr.mount and all mount points - found in /etc/fstab that have - and not have - mount options set. + automatically adds dependencies of type Before= to + sysroot-usr.mount and all mount points found in + /etc/fstab that have the mount option set + and do not have the mount option set. It is also indirectly ordered after + sysroot.mount. Thus, once this target is reached the + /sysroot/ hierarchy is fully set up, in preparation for the transition to + the host OS. @@ -396,11 +398,27 @@ initrd-root-fs.target systemd-fstab-generator3 - automatically adds dependencies of type - Before= to the - sysroot.mount unit, which is generated - from the kernel command line. - + automatically adds dependencies of type Before= to the + sysroot.mount unit, which is generated from the kernel command line's + root= setting (or equivalent). + + + + initrd-usr-fs.target + + systemd-fstab-generator3 + automatically adds dependencies of type Before= to the + sysusr-usr.mount unit, which is generated from the kernel command line's + usr= switch. Services may order themselves after this target unit in order to + run once the /sysusr/ hierarchy becomes available, on systems that come up + initially without a root file system, but with an initialized /usr/ and need + to access that before setting up the root file system to ultimately switch to. On systems where + usr= is not used this target is ordered afer + sysroot.mount and thus mostly equivalent to + initrd-root-fs.target. In effect on any system once this target is reached + the file system backing /usr/ is mounted, though possibly at two different + locations, either below the /sysusr/ or the /sysroot/ + hierarchies. -- cgit v1.2.1