]> git.ipfire.org Git - thirdparty/systemd.git/blob - units/initrd-parse-etc.service.in
Merge pull request #32694 from weblate/weblate-systemd-main
[thirdparty/systemd.git] / units / initrd-parse-etc.service.in
1 # SPDX-License-Identifier: LGPL-2.1-or-later
2 #
3 # This file is part of systemd.
4 #
5 # systemd is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU Lesser General Public License as published by
7 # the Free Software Foundation; either version 2.1 of the License, or
8 # (at your option) any later version.
9
10 [Unit]
11 Description=Mountpoints Configured in the Real Root
12 AssertPathExists=/etc/initrd-release
13
14 DefaultDependencies=no
15 Requires=initrd-root-fs.target
16 After=initrd-root-fs.target
17
18 Conflicts=emergency.target
19
20 OnFailure=emergency.target
21 OnFailureJobMode=replace-irreversibly
22
23 [Service]
24 Type=oneshot
25
26 ExecStart={{LIBEXECDIR}}/systemd-sysroot-fstab-check
27
28 # We want to enqueue initrd-cleanup.service/start after we finished the part
29 # above. It can't be part of the initial transaction, because non-oneshot units
30 # use Conflicts=initrd-cleanup.service to be terminated before we switch root.
31 # Effectively, initrd-parse-etc.service acts as a synchronization point after
32 # which cleanup of the initrd processes starts.
33 ExecStart=systemctl --no-block start initrd-cleanup.service