void-packages/srcpkgs/dracut/files/kernel-hook-postinst
Juan RP ff126c26e7 dracut: do not force any specific compression in the kernel hook.
The admin may set its preferred compression format via dracut.conf.
2015-06-24 11:49:00 +02:00

15 lines
249 B
Bash

#!/bin/sh
#
# Kernel post-install hook for dracut.
#
# Arguments passed to this script: $1 pkgname, $2 version.
#
PKGNAME="$1"
VERSION="$2"
if [ ! -x bin/dracut ]; then
exit 0
fi
dracut -q --force boot/initramfs-${VERSION}.img ${VERSION}
exit $?