boot: Use emergency.target, not emergency.service

Follow systemd units in using emergency.target, not emergency.service
(which is the sole unit, by default, in emergency.target) so we can
easily reconfigure the units which are actived when entering
emergency mode.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>

Closes: #1665
Approved by: cgwalters
This commit is contained in:
Alex Kiernan authored and Atomic Bot committed 2018-07-03 13:38:10 +00:00
1 parent 0c8b86ea09
commit a0527e7086
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -20,7 +20,7 @@ Description=OSTree Prepare OS/
DefaultDependencies=no
ConditionKernelCommandLine=ostree
ConditionPathExists=/etc/initrd-release
OnFailure=emergency.service
OnFailure=emergency.target
After=initrd-switch-root.target
Before=initrd-switch-root.service
Before=plymouth-switch-root.service
+1 -1
View File
@@ -19,7 +19,7 @@
Description=OSTree Remount OS/ bind mounts
DefaultDependencies=no
ConditionKernelCommandLine=ostree
OnFailure=emergency.service
OnFailure=emergency.target
Conflicts=umount.target
After=-.mount
After=systemd-remount-fs.service