From 700e07ffd53083114e91bb4ba646ed26d0463f67 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Mon, 4 Mar 2013 19:01:05 +0100 Subject: add initrd-fs.target and root-fs.target 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. --- units/initrd-parse-etc.service.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'units/initrd-parse-etc.service.in') diff --git a/units/initrd-parse-etc.service.in b/units/initrd-parse-etc.service.in index 1a2711ac62..44fee7bd34 100644 --- a/units/initrd-parse-etc.service.in +++ b/units/initrd-parse-etc.service.in @@ -8,13 +8,13 @@ [Unit] Description=Reload Configuration from the Real Root DefaultDependencies=no -Requires=local-fs.target swap.target -After=local-fs.target swap.target +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 local-fs.target +ExecStart=@rootbindir@/systemctl start initrd-fs.target ExecStart=@rootbindir@/systemctl --no-block start initrd-cleanup.service -- cgit v1.2.3-54-g00ecf