void-packages/srcpkgs/dracut/files/kernel-hook-postinst

16 lines
258 B
Text
Raw Normal View History

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