]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
systemd: Look up systemd-tty-ask-password-agent location
authorCristian Rodríguez <crrodriguez@opensuse.org>
Sat, 13 Apr 2013 19:17:51 +0000 (16:17 -0300)
committerRay Strode <rstrode@redhat.com>
Sun, 14 Apr 2013 16:06:38 +0000 (12:06 -0400)
Don't assume it's in /bin.

configure.ac
systemd-units/systemd-ask-password-plymouth.service.in

index c20974e2061da0b230d8fe2cd5d788d260457d3c..7154aaf1313f0b310b5a5a790fdff1ad79c3f31b 100644 (file)
@@ -44,6 +44,8 @@ PLYMOUTH_LIBS="-lm -lrt -ldl"
 AC_SUBST(PLYMOUTH_CFLAGS)
 AC_SUBST(PLYMOUTH_LIBS)
 
+AC_PATH_PROG([SYSTEMD_ASK_PASSWORD_AGENT], [systemd-tty-ask-password-agent])
+
 AC_ARG_ENABLE(pango, AS_HELP_STRING([--enable-pango],[enable building with pango, disabled there is no encryption prompts]),enable_pango=$enableval,enable_pango=yes)
 AM_CONDITIONAL(ENABLE_PANGO,  [test "$enable_pango" = yes])
 
index aa9ffc21708f97bc8cbb35c56331e05b01aa839d..0c3acde9fb01466a1dcc6d8af644e33117bc5907 100644 (file)
@@ -9,4 +9,4 @@ ConditionKernelCommandLine=!plymouth.enable=0
 ConditionPathExists=/run/plymouth/pid
 
 [Service]
-ExecStart=/bin/systemd-tty-ask-password-agent --watch --plymouth
+ExecStart=@SYSTEMD_ASK_PASSWORD_AGENT@ --watch --plymouth