Merge branch 'maks/hooks'

This commit is contained in:
maximilian attems 2010-07-09 14:26:54 +02:00
commit b2e690b320
2 changed files with 4 additions and 2 deletions

View File

@ -9,6 +9,8 @@ bootopt=""
# kernel-package passes an extra arg
if [ -n "$2" ]; then
if [ -n "${KERNEL_PACKAGE_VERSION}" ]; then
# exit if custom kernel does not need an initramfs
[ "$INITRD" = 'No' ] && exit 0
bootdir=$(dirname "$2")
bootopt="-b ${bootdir}"
else
@ -26,4 +28,4 @@ if [ -n "$DEB_MAINT_PARAMS" ]; then
fi
# we're good - create initramfs. update runs do_bootloader
update-initramfs -c -t -k "${version}" ${bootopt}
update-initramfs -c -t -k "${version}" ${bootopt} >&2

View File

@ -26,4 +26,4 @@ if [ -n "$DEB_MAINT_PARAMS" ]; then
fi
# delete initramfs
update-initramfs -d -t -k "${version}" ${bootopt}
update-initramfs -d -t -k "${version}" ${bootopt} >&2