[systemd-devel] [PATCH 04/11] Allow multiple sulogin to be started
Werner Fink
werner at suse.de
Fri Jun 13 07:41:03 PDT 2014
From: Frederic Crozat <fcrozat at suse.com>
Otherwise any agetty on the devices of the system console will
conflict with sulogin and its input.
---
units/getty at .service.m4 | 1 +
units/rescue.target | 1 +
units/serial-getty at .service.m4 | 1 +
3 files changed, 3 insertions(+)
diff --git units/getty at .service.m4 units/getty at .service.m4
index aa853b8..7fb2db8 100644
--- units/getty at .service.m4
+++ units/getty at .service.m4
@@ -9,6 +9,7 @@
Description=Getty on %I
Documentation=man:agetty(8) man:systemd-getty-generator(8)
Documentation=http://0pointer.de/blog/projects/serial-console.html
+Conflicts=rescue.service
After=systemd-user-sessions.service plymouth-quit-wait.service
m4_ifdef(`HAVE_SYSV_COMPAT',
After=rc-local.service
diff --git units/rescue.target units/rescue.target
index 3f59b14..20f6841 100644
--- units/rescue.target
+++ units/rescue.target
@@ -10,6 +10,7 @@ Description=Rescue Mode
Documentation=man:systemd.special(7)
Requires=sysinit.target rescue.service
After=sysinit.target rescue.service
+Conflicts=getty.target
AllowIsolate=yes
[Install]
diff --git units/serial-getty at .service.m4 units/serial-getty at .service.m4
index 4ac51e7..4b1ab20 100644
--- units/serial-getty at .service.m4
+++ units/serial-getty at .service.m4
@@ -10,6 +10,7 @@ Description=Serial Getty on %I
Documentation=man:agetty(8) man:systemd-getty-generator(8)
Documentation=http://0pointer.de/blog/projects/serial-console.html
BindsTo=dev-%i.device
+Conflicts=rescue.service
After=dev-%i.device systemd-user-sessions.service plymouth-quit-wait.service
m4_ifdef(`HAVE_SYSV_COMPAT',
After=rc-local.service
--
1.7.9.2
More information about the systemd-devel
mailing list