mirror of
https://github.com/systemd/systemd.git
synced 2024-10-28 20:25:38 +03:00
700e07ffd5
Instead of using local-fs*.target in the initrd, use root-fs.target for sysroot.mount and initrd-fs.target for /sysroot/usr and friends. Using local-fs.target would mean to carry over the activated local-fs.target to the isolated initrd-switch-root.target and thus in the real root. Having local-fs.target already active after deserialization causes ordering problems with the real root services and targets. We better isolate to targets for initrd-switch-root.target, which are only available in the initrd.
21 lines
689 B
SYSTEMD
21 lines
689 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=root-fs.target
|
|
After=root-fs.target
|
|
OnFailure=emergency.target
|
|
ConditionPathExists=/etc/initrd-release
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStartPre=@rootbindir@/systemctl daemon-reload
|
|
ExecStart=@rootbindir@/systemctl start initrd-fs.target
|
|
ExecStart=@rootbindir@/systemctl --no-block start initrd-cleanup.service
|