From 7163e1ca1108d789ee8b40238ebf0f6978cd58a9 Mon Sep 17 00:00:00 2001 From: Daniel Drake Date: Thu, 12 May 2016 10:42:39 -0600 Subject: Create initrd-root-device.target synchronization point (#3239) Add a synchronization point so that custom initramfs units can run after the root device becomes available, before it is fsck'd and mounted. This is useful for custom initramfs units that may modify the root disk partition table, where the root device is not known in advance (it's dynamically selected by the generators). --- man/bootup.xml | 7 ++++++- man/systemd.special.xml | 13 +++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) (limited to 'man') diff --git a/man/bootup.xml b/man/bootup.xml index b92057af29..986996398c 100644 --- a/man/bootup.xml +++ b/man/bootup.xml @@ -179,6 +179,8 @@ identical to the system manager bootup (see above) until it reaches basic.target. From there, systemd approaches the special target initrd.target. + When the root device becomes available, + initd-root-device.target is reached. If the root device can be mounted at /sysroot, the sysroot.mount unit becomes active and @@ -204,7 +206,10 @@ | emergency.service ______________________/| | / | v - | sysroot.mount emergency.target + | initrd-root-device.target emergency.target + | | + | v + | sysroot.mount | | | v | initrd-root-fs.target diff --git a/man/systemd.special.xml b/man/systemd.special.xml index 14998b9647..26974ed73f 100644 --- a/man/systemd.special.xml +++ b/man/systemd.special.xml @@ -83,6 +83,7 @@ remote-fs.target, remote-fs-pre.target, rescue.target, + initrd-root-device.target, initrd-root-fs.target, rpcbind.target, runlevel2.target, @@ -464,6 +465,18 @@ SysV. + + initrd-root-device.target + + A special initrd target unit that is reached when the root filesystem device is available, but before + it has been mounted. + systemd-fstab-generator3 + and + systemd-gpt-auto-generator3 + automatically setup the appropiate dependencies to make this happen. + + + initrd-root-fs.target -- cgit v1.2.3-54-g00ecf