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
initramfs_args="$initramfs_args -u -t -k all"
${update_initramfs} ${initramfs_args}
env ROOTDIR="." ${update_initramfs} ${initramfs_args}
exit $?
;;

View File

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

View File

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