From: Brett Witherspoon Date: Tue, 12 Oct 2010 03:05:24 +0000 (-0500) Subject: populate-initrd: don't hardcode client and daemon path X-Git-Tag: 0.8.4~99 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d7f59d9dc29c73fd72a7c0823ad5738211863b39;p=thirdparty%2Fplymouth.git populate-initrd: don't hardcode client and daemon path When not installing in system root, the populate initrd script would not install the client or daemon due to the paths being hardcoded. Environmental variables are also now available to override the defaults. --- diff --git a/configure.ac b/configure.ac index 535b6ee7..664a6c7d 100644 --- a/configure.ac +++ b/configure.ac @@ -138,6 +138,9 @@ fi AC_SUBST(plymouthclientdir) AC_SUBST(plymouthdaemondir) +AS_AC_EXPAND(PLYMOUTH_CLIENT_DIR, $plymouthclientdir) +AS_AC_EXPAND(PLYMOUTH_DAEMON_DIR, $plymouthdaemondir) + AC_ARG_WITH(rhgb-compat-link, AS_HELP_STRING([--with-rhgb-compat-link],[Install /usr/bin/rhgb-client compatability symlink]),with_rhgb_compat_link=${withval},with_rhgb_compat_link=yes) AM_CONDITIONAL(WITH_RHGB_COMPAT_LINK, [test "$with_rhgb_compat_link" = yes]) diff --git a/scripts/plymouth-populate-initrd.in b/scripts/plymouth-populate-initrd.in index 7a2f0ca1..52d43ae7 100755 --- a/scripts/plymouth-populate-initrd.in +++ b/scripts/plymouth-populate-initrd.in @@ -9,6 +9,8 @@ [ -z "$PLYMOUTH_THEME_NAME" ] && PLYMOUTH_THEME_NAME=$(plymouth-set-default-theme) [ -z "$PLYMOUTH_CONFDIR" ] && PLYMOUTH_CONFDIR="@PLYMOUTH_CONF_DIR@" [ -z "$PLYMOUTH_POLICYDIR" ] && PLYMOUTH_POLICYDIR="@PLYMOUTH_POLICY_DIR@" +[ -z "$PLYMOUTH_DAEMON_PATH" ] && PLYMOUTH_DAEMON_PATH="@PLYMOUTH_DAEMON_DIR@/plymouthd" +[ -z "$PLYMOUTH_CLIENT_PATH" ] && PLYMOUTH_CLIENT_PATH="@PLYMOUTH_CLIENT_DIR@/plymouth" if [ -z "$PLYMOUTH_POPULATE_SOURCE_FUNCTIONS" ]; then @@ -72,8 +74,8 @@ set_verbose $verbose || : [ -z "$INITRDDIR" ] && usage error mkdir -p ${INITRDDIR}${PLYMOUTH_DATADIR}/plymouth/themes -inst /sbin/plymouthd $INITRDDIR /bin/plymouthd -inst /bin/plymouth $INITRDDIR +inst ${PLYMOUTH_DAEMON_PATH} $INITRDDIR /bin/plymouthd +inst ${PLYMOUTH_CLIENT_PATH} $INITRDDIR /bin/plymouth inst ${PLYMOUTH_DATADIR}/plymouth/themes/text/text.plymouth $INITRDDIR inst ${PLYMOUTH_PLUGIN_PATH}/text.so $INITRDDIR inst ${PLYMOUTH_DATADIR}/plymouth/themes/details/details.plymouth $INITRDDIR