xbps-triggers: set ROOTDIR for initramfs-tools trigger/hook.

This commit is contained in:
Juan RP 2011-11-10 14:03:58 +01:00
parent dc37d2e55f
commit 4060d427fa
3 changed files with 4 additions and 4 deletions

View file

@ -40,7 +40,7 @@ run)
# Update initramfs for all kernels # Update initramfs for all kernels
initramfs_args="$initramfs_args -u -t -k all" initramfs_args="$initramfs_args -u -t -k all"
${update_initramfs} ${initramfs_args} env ROOTDIR="." ${update_initramfs} ${initramfs_args}
exit $? exit $?
;; ;;

View file

@ -41,9 +41,9 @@ run)
# A package may export "kernel_hooks_version" as a hint # A package may export "kernel_hooks_version" as a hint
# to pass this version to the hooks. # to pass this version to the hooks.
if [ -n "${kernel_hooks_version}" ]; then if [ -n "${kernel_hooks_version}" ]; then
${_file_} ${PKGNAME} ${kernel_hooks_version} env ROOTDIR="." ${_file_} ${PKGNAME} ${kernel_hooks_version}
else else
${_file_} ${PKGNAME} ${VERSION} env ROOTDIR="." ${_file_} ${PKGNAME} ${VERSION}
fi fi
done done
;; ;;

View file

@ -1,6 +1,6 @@
# Template file for 'xbps-triggers' # Template file for 'xbps-triggers'
pkgname=xbps-triggers pkgname=xbps-triggers
version=0.28 version=0.29
short_desc="XBPS triggers" short_desc="XBPS triggers"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://code.google.com/p/xbps" homepage="http://code.google.com/p/xbps"