void-packages/srcpkgs/initramfs-tools/files/kernel.d/initramfs-tools.postrm

17 lines
270 B
Bash

#!/bin/sh
#
# Kernel post-remove hook for initramfs-tools.
#
# Arguments passed to this script: $1 pkgname, $2 version.
#
PKGNAME="$1"
VERSION="$2"
if [ ! -x /usr/sbin/update-initramfs ]; then
exit 0
fi
export ROOTDIR="."
update-initramfs -d -t -k ${VERSION}
exit $?