void-packages/srcpkgs/booster/files/kernel-hook-postinst
travankor 14d62d90f7 New package: booster-0.9
Co-authored-by: Andrew J. Hesford <ajh@sideband.org>
2022-10-14 16:36:29 -04:00

13 lines
275 B
Bash

#!/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