From: Cristian Rodríguez Date: Sat, 13 Apr 2013 19:17:51 +0000 (-0300) Subject: systemd: Look up systemd-tty-ask-password-agent location X-Git-Tag: 0.9.0~96 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f373680dd09345838e269ddfbab1f48d2dd1efb;p=thirdparty%2Fplymouth.git systemd: Look up systemd-tty-ask-password-agent location Don't assume it's in /bin. --- diff --git a/configure.ac b/configure.ac index c20974e2..7154aaf1 100644 --- a/configure.ac +++ b/configure.ac @@ -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]) diff --git a/systemd-units/systemd-ask-password-plymouth.service.in b/systemd-units/systemd-ask-password-plymouth.service.in index aa9ffc21..0c3acde9 100644 --- a/systemd-units/systemd-ask-password-plymouth.service.in +++ b/systemd-units/systemd-ask-password-plymouth.service.in @@ -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