summaryrefslogtreecommitdiff
path: root/units/initrd-switch-root.target
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2013-03-14 13:12:10 +0100
committerHarald Hoyer <harald@redhat.com>2013-03-15 00:49:37 +0100
commit9e5f0f92915b777308797294c6e103e430957b5d (patch)
treedaf284ba6992764b083d43bb9cfb66eed8319c6e /units/initrd-switch-root.target
parentc1dae1b3c9729fb8ab749dd4e2dad07e0fad7ed8 (diff)
Make initrd.target the default target in the initrd
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
Diffstat (limited to 'units/initrd-switch-root.target')
-rw-r--r--units/initrd-switch-root.target4
1 files changed, 2 insertions, 2 deletions
diff --git a/units/initrd-switch-root.target b/units/initrd-switch-root.target
index cf646c4ef9..f34768790b 100644
--- a/units/initrd-switch-root.target
+++ b/units/initrd-switch-root.target
@@ -12,5 +12,5 @@ DefaultDependencies=no
Requires=initrd-switch-root.service
Before=initrd-switch-root.service
AllowIsolate=yes
-Wants=initrd-udevadm-cleanup-db.service root-fs.target initrd-fs.target systemd-journald.service
-After=initrd-udevadm-cleanup-db.service root-fs.target initrd-fs.target emergency.service emergency.target
+Wants=initrd-udevadm-cleanup-db.service initrd-root-fs.target initrd-fs.target systemd-journald.service
+After=initrd-udevadm-cleanup-db.service initrd-root-fs.target initrd-fs.target emergency.service emergency.target