From: Harald Hoyer Date: Wed, 16 May 2012 09:22:28 +0000 (+0200) Subject: systemd/switch-root.service: do not require shutdown and isolate to default X-Git-Tag: 019~60 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=41153ca4f2163d2ede2d269e2a5388d7a4b73621;p=platform%2Fupstream%2Fdracut.git systemd/switch-root.service: do not require shutdown and isolate to default do not require shutdown.target and final.target After switch-root isolate to the default target. This will load the default target in the real root after systemd deserializes. --- diff --git a/modules.d/98systemd/switch-root.service b/modules.d/98systemd/switch-root.service index f72739e..0c41eb0 100644 --- a/modules.d/98systemd/switch-root.service +++ b/modules.d/98systemd/switch-root.service @@ -8,10 +8,9 @@ [Unit] Description=Switch Root DefaultDependencies=no -Requires=shutdown.target final.target -After=shutdown.target final.target [Service] Type=oneshot EnvironmentFile=/etc/switch-root.conf ExecStart=/usr/bin/systemctl --force switch-root ${NEWROOT} ${NEWINIT} +ExecStopPost=-/usr/bin/systemctl isolate default.target