#!/bin/sh
#
# Kernel post-install hook for booster.
#
# Arguments passed to this script: $1 pkgname, $2 version.
#
PKGNAME="$1"
VERSION="$2"

[ -x usr/bin/booster ] || exit 0

umask 0077
usr/bin/booster build --force --kernel-version ${VERSION} boot/initramfs-${VERSION}.img
