May be in /sbin or /usr/sbin
---
Makefile.am | 1 +
configure.ac | 2 ++
units/console-getty.service.m4.in | 2 +-
units/[email protected] | 2 +-
units/[email protected] | 2 +-
units/[email protected] | 2 +-
6 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index bf04d31..50da86c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -6240,6 +6240,7 @@ substitutions = \
'|udevlibexecdir=$(udevlibexecdir)|' \
'|SUSHELL=$(SUSHELL)|' \
'|SULOGIN=$(SULOGIN)|' \
+ '|AGETTY=$(AGETTY)|' \
'|DEBUGTTY=$(DEBUGTTY)|' \
'|KILL=$(KILL)|' \
'|KMOD=$(KMOD)|' \
diff --git a/configure.ac b/configure.ac
index 97a29d6..8d434cf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -100,6 +100,8 @@ AC_PATH_PROG([KEXEC], [kexec], [/usr/sbin/kexec],
[$PATH:/usr/sbin:/sbin])
AC_PATH_PROG([SULOGIN], [sulogin], [/usr/sbin/sulogin],
[$PATH:/usr/sbin:/sbin])
+AC_PATH_PROG([AGETTY], [agetty], [/usr/sbin/agetty], [$PATH:/usr/sbin:/sbin])
+
AS_IF([! ln --relative --help > /dev/null 2>&1], [AC_MSG_ERROR([*** ln doesn't
support --relative ***])])
M4_DEFINES=
diff --git a/units/console-getty.service.m4.in
b/units/console-getty.service.m4.in
index 8ac51a4..b12810e 100644
--- a/units/console-getty.service.m4.in
+++ b/units/console-getty.service.m4.in
@@ -15,7 +15,7 @@ After=rc-local.service
Before=getty.target
[Service]
-ExecStart=-/sbin/agetty --noclear --keep-baud console 115200,38400,9600 $TERM
+ExecStart=-@AGETTY@ --noclear --keep-baud console 115200,38400,9600 $TERM
Type=idle
Restart=always
RestartSec=0
diff --git a/units/[email protected]
b/units/[email protected]
index e126f3a..127abaf 100644
--- a/units/[email protected]
+++ b/units/[email protected]
@@ -17,7 +17,7 @@ IgnoreOnIsolate=yes
ConditionPathExists=/dev/pts/%I
[Service]
-ExecStart=-/sbin/agetty --noclear --keep-baud pts/%I 115200,38400,9600 $TERM
+ExecStart=-@AGETTY@ --noclear --keep-baud pts/%I 115200,38400,9600 $TERM
Type=idle
Restart=always
RestartSec=0
diff --git a/units/[email protected] b/units/[email protected]
index 46164ab..e1a418a 100644
--- a/units/[email protected]
+++ b/units/[email protected]
@@ -27,7 +27,7 @@ ConditionPathExists=/dev/tty0
[Service]
# the VT is cleared by TTYVTDisallocate
-ExecStart=-/sbin/agetty --noclear %I $TERM
+ExecStart=-@AGETTY@ --noclear %I $TERM
Type=idle
Restart=always
RestartSec=0
diff --git a/units/[email protected] b/units/[email protected]
index 4522d0d..bafbbb2 100644
--- a/units/[email protected]
+++ b/units/[email protected]
@@ -22,7 +22,7 @@ Before=getty.target
IgnoreOnIsolate=yes
[Service]
-ExecStart=-/sbin/agetty --keep-baud 115200,38400,9600 %I $TERM
+ExecStart=-@AGETTY@ --keep-baud 115200,38400,9600 %I $TERM
Type=idle
Restart=always
UtmpIdentifier=%I
--
2.2.2
_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel