1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-10 01:17:44 +03:00

Merge pull request #24670 from keszybz/early-boot-ordering

Early boot ordering
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2022-09-17 13:26:51 +02:00 committed by GitHub
commit 15b3f7e309
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 69 additions and 33 deletions

View File

@ -9,11 +9,14 @@
[Unit] [Unit]
Description=Switch Root Description=Switch Root
DefaultDependencies=no
AssertPathExists=/etc/initrd-release AssertPathExists=/etc/initrd-release
DefaultDependencies=no
Wants=initrd-switch-root.target
AllowIsolate=yes
OnFailure=emergency.target OnFailure=emergency.target
OnFailureJobMode=replace-irreversibly OnFailureJobMode=replace-irreversibly
AllowIsolate=yes
[Service] [Service]
Type=oneshot Type=oneshot

View File

@ -10,13 +10,16 @@
[Unit] [Unit]
Description=Rebuild Dynamic Linker Cache Description=Rebuild Dynamic Linker Cache
Documentation=man:ldconfig(8) Documentation=man:ldconfig(8)
DefaultDependencies=no
Conflicts=shutdown.target
After=local-fs.target
Before=sysinit.target shutdown.target systemd-update-done.service
ConditionNeedsUpdate=|/etc ConditionNeedsUpdate=|/etc
ConditionFileNotEmpty=|!/etc/ld.so.cache ConditionFileNotEmpty=|!/etc/ld.so.cache
DefaultDependencies=no
After=local-fs.target
Before=sysinit.target systemd-update-done.service
Conflicts=shutdown.target initrd-switch-root.target
Before=shutdown.target initrd-switch-root.target
[Service] [Service]
Type=oneshot Type=oneshot
RemainAfterExit=yes RemainAfterExit=yes

View File

@ -10,6 +10,8 @@
[Unit] [Unit]
Description=System Initialization Description=System Initialization
Documentation=man:systemd.special(7) Documentation=man:systemd.special(7)
Conflicts=emergency.service emergency.target
Wants=local-fs.target swap.target Wants=local-fs.target swap.target
After=local-fs.target swap.target emergency.service emergency.target After=local-fs.target swap.target
Conflicts=emergency.service emergency.target
Before=emergency.service emergency.target

View File

@ -32,4 +32,4 @@ ConditionPathIsSymbolicLink=|/system-update
[Service] [Service]
Type=oneshot Type=oneshot
ExecStart=/bin/rm -fv /system-update ExecStart=rm -fv /system-update

View File

@ -10,12 +10,17 @@
[Unit] [Unit]
Description=Dispatch Password Requests to Console Directory Watch Description=Dispatch Password Requests to Console Directory Watch
Documentation=man:systemd-ask-password-console.path(8) Documentation=man:systemd-ask-password-console.path(8)
DefaultDependencies=no
Conflicts=shutdown.target emergency.service
After=plymouth-start.service
Before=paths.target shutdown.target cryptsetup.target
ConditionPathExists=!/run/plymouth/pid ConditionPathExists=!/run/plymouth/pid
DefaultDependencies=no
After=plymouth-start.service
Before=paths.target cryptsetup.target
Conflicts=emergency.service
Before=emergency.service
Conflicts=shutdown.target
Before=shutdown.target
[Path] [Path]
DirectoryNotEmpty=/run/systemd/ask-password DirectoryNotEmpty=/run/systemd/ask-password
MakeDirectory=yes MakeDirectory=yes

View File

@ -10,12 +10,16 @@
[Unit] [Unit]
Description=Dispatch Password Requests to Console Description=Dispatch Password Requests to Console
Documentation=man:systemd-ask-password-console.service(8) Documentation=man:systemd-ask-password-console.service(8)
DefaultDependencies=no
Conflicts=shutdown.target emergency.service
After=plymouth-start.service systemd-vconsole-setup.service
Before=shutdown.target
ConditionPathExists=!/run/plymouth/pid ConditionPathExists=!/run/plymouth/pid
DefaultDependencies=no
After=plymouth-start.service systemd-vconsole-setup.service
Conflicts=emergency.service
Before=emergency.service
Conflicts=shutdown.target initrd-switch-root.target
Before=shutdown.target initrd-switch-root.target
[Service] [Service]
ExecStart=systemd-tty-ask-password-agent --watch --console ExecStart=systemd-tty-ask-password-agent --watch --console
SystemCallArchitectures=native SystemCallArchitectures=native

View File

@ -10,9 +10,13 @@
[Unit] [Unit]
Description=Forward Password Requests to Wall Directory Watch Description=Forward Password Requests to Wall Directory Watch
Documentation=man:systemd-ask-password-wall.path(8) Documentation=man:systemd-ask-password-wall.path(8)
DefaultDependencies=no DefaultDependencies=no
Conflicts=shutdown.target emergency.service Before=paths.target cryptsetup.target
Before=paths.target shutdown.target cryptsetup.target Conflicts=emergency.service
Before=emergency.service
Conflicts=shutdown.target
Before=shutdown.target
[Path] [Path]
DirectoryNotEmpty=/run/systemd/ask-password DirectoryNotEmpty=/run/systemd/ask-password

View File

@ -10,10 +10,11 @@
[Unit] [Unit]
Description=Store a System Token in an EFI Variable Description=Store a System Token in an EFI Variable
Documentation=man:systemd-boot-system-token.service(8) Documentation=man:systemd-boot-system-token.service(8)
DefaultDependencies=no DefaultDependencies=no
Conflicts=shutdown.target
After=local-fs.target systemd-random-seed.service After=local-fs.target systemd-random-seed.service
Before=shutdown.target Conflicts=shutdown.target initrd-switch-root.target
Before=shutdown.target initrd-switch-root.target
# Don't run this in a VM environment, because there EFI variables are not # Don't run this in a VM environment, because there EFI variables are not
# actually stored in NVRAM, independent of regular storage. # actually stored in NVRAM, independent of regular storage.

View File

@ -10,9 +10,12 @@
[Unit] [Unit]
Description=Generate network units from Kernel command line Description=Generate network units from Kernel command line
Documentation=man:systemd-network-generator.service(8) Documentation=man:systemd-network-generator.service(8)
DefaultDependencies=no DefaultDependencies=no
Before=network-pre.target systemd-udevd.service Before=network-pre.target systemd-udevd.service
Wants=network-pre.target Wants=network-pre.target
Conflicts=shutdown.target initrd-switch-root.target
Before=shutdown.target initrd-switch-root.target
[Service] [Service]
Type=oneshot Type=oneshot

View File

@ -10,10 +10,7 @@
[Unit] [Unit]
Description=Merge System Extension Images into /usr/ and /opt/ Description=Merge System Extension Images into /usr/ and /opt/
Documentation=man:systemd-sysext.service(8) Documentation=man:systemd-sysext.service(8)
DefaultDependencies=no
Conflicts=shutdown.target
After=local-fs.target
Before=sysinit.target shutdown.target systemd-tmpfiles.service
ConditionCapability=CAP_SYS_ADMIN ConditionCapability=CAP_SYS_ADMIN
ConditionDirectoryNotEmpty=|/etc/extensions ConditionDirectoryNotEmpty=|/etc/extensions
ConditionDirectoryNotEmpty=|/run/extensions ConditionDirectoryNotEmpty=|/run/extensions
@ -21,6 +18,12 @@ ConditionDirectoryNotEmpty=|/var/lib/extensions
ConditionDirectoryNotEmpty=|/usr/local/lib/extensions ConditionDirectoryNotEmpty=|/usr/local/lib/extensions
ConditionDirectoryNotEmpty=|/usr/lib/extensions ConditionDirectoryNotEmpty=|/usr/lib/extensions
DefaultDependencies=no
After=local-fs.target
Before=sysinit.target systemd-tmpfiles.service
Conflicts=shutdown.target initrd-switch-root.target
Before=shutdown.target initrd-switch-root.target
[Service] [Service]
Type=oneshot Type=oneshot
RemainAfterExit=yes RemainAfterExit=yes

View File

@ -10,10 +10,13 @@
[Unit] [Unit]
Description=Create System Users Description=Create System Users
Documentation=man:sysusers.d(5) man:systemd-sysusers.service(8) Documentation=man:sysusers.d(5) man:systemd-sysusers.service(8)
DefaultDependencies=no DefaultDependencies=no
Conflicts=shutdown.target
After=systemd-remount-fs.service After=systemd-remount-fs.service
Before=sysinit.target shutdown.target systemd-update-done.service Before=sysinit.target systemd-update-done.service
Conflicts=shutdown.target initrd-switch-root.target
Before=shutdown.target initrd-switch-root.target
ConditionNeedsUpdate=|/etc ConditionNeedsUpdate=|/etc
ConditionCredential=|sysusers.extra ConditionCredential=|sysusers.extra

View File

@ -10,10 +10,11 @@
[Unit] [Unit]
Description=Cleanup of Temporary Directories Description=Cleanup of Temporary Directories
Documentation=man:tmpfiles.d(5) man:systemd-tmpfiles(8) Documentation=man:tmpfiles.d(5) man:systemd-tmpfiles(8)
DefaultDependencies=no DefaultDependencies=no
Conflicts=shutdown.target initrd-switch-root.service
After=local-fs.target time-set.target After=local-fs.target time-set.target
Before=shutdown.target Conflicts=shutdown.target initrd-switch-root.target
Before=shutdown.target initrd-switch-root.target
[Service] [Service]
Type=oneshot Type=oneshot

View File

@ -10,10 +10,12 @@
[Unit] [Unit]
Description=Create Static Device Nodes in /dev Description=Create Static Device Nodes in /dev
Documentation=man:tmpfiles.d(5) man:systemd-tmpfiles(8) Documentation=man:tmpfiles.d(5) man:systemd-tmpfiles(8)
DefaultDependencies=no DefaultDependencies=no
Conflicts=shutdown.target
After=systemd-sysusers.service After=systemd-sysusers.service
Before=sysinit.target local-fs-pre.target systemd-udevd.service shutdown.target Before=sysinit.target local-fs-pre.target systemd-udevd.service
Conflicts=shutdown.target initrd-switch-root.target
Before=shutdown.target initrd-switch-root.target
[Service] [Service]
Type=oneshot Type=oneshot

View File

@ -10,10 +10,12 @@
[Unit] [Unit]
Description=Create Volatile Files and Directories Description=Create Volatile Files and Directories
Documentation=man:tmpfiles.d(5) man:systemd-tmpfiles(8) Documentation=man:tmpfiles.d(5) man:systemd-tmpfiles(8)
DefaultDependencies=no DefaultDependencies=no
Conflicts=shutdown.target initrd-switch-root.service
After=local-fs.target systemd-sysusers.service systemd-journald.service After=local-fs.target systemd-sysusers.service systemd-journald.service
Before=sysinit.target shutdown.target Before=sysinit.target
Conflicts=shutdown.target initrd-switch-root.target
Before=shutdown.target initrd-switch-root.target
RefuseManualStop=yes RefuseManualStop=yes
[Service] [Service]