mirror of
https://github.com/systemd/systemd.git
synced 2024-11-04 22:21:55 +03:00
9e5f0f9291
First, rename root-fs.target to initrd-root-fs.target to clarify its usage. Mount units with "x-initrd-rootfs.mount" are now ordered before initrd-root-fs.target. As we sometimes construct /sysroot mounts in /etc/fstab in the initrd, we want these to be mounted before the initrd-root-fs.target is active. initrd.target can be the default target in the initrd. (normal startup) : : v basic.target | ______________________/| / | | sysroot.mount | | | v | initrd-root-fs.target | | | v | initrd-parse-etc.service (custom initrd services) | | v | (sysroot-usr.mount and | various mounts marked | with fstab option | x-initrd.mount) | | | v | initrd-fs.target | | \______________________ | \| v initrd.target | v initrd-cleanup.service isolates to initrd-switch-root.target | v ______________________/| / | | initrd-udevadm-cleanup-db.service | | (custom initrd services) | | | \______________________ | \| v initrd-switch-root.target | v initrd-switch-root.service | v switch-root
22 lines
775 B
SYSTEMD
22 lines
775 B
SYSTEMD
# This file is part of systemd.
|
|
#
|
|
# systemd is free software; you can redistribute it and/or modify it
|
|
# under the terms of the GNU Lesser General Public License as published by
|
|
# the Free Software Foundation; either version 2.1 of the License, or
|
|
# (at your option) any later version.
|
|
|
|
[Unit]
|
|
Description=Reload Configuration from the Real Root
|
|
DefaultDependencies=no
|
|
Requires=initrd-root-fs.target
|
|
After=initrd-root-fs.target
|
|
OnFailure=emergency.target
|
|
ConditionPathExists=/etc/initrd-release
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStartPre=@rootbindir@/systemctl daemon-reload
|
|
# we have to retrigger initrd-fs.target after daemon-reload
|
|
ExecStart=-@rootbindir@/systemctl --no-block start initrd-fs.target
|
|
ExecStart=@rootbindir@/systemctl --no-block start initrd-cleanup.service
|