void-packages/srcpkgs/dracut/files/kernel-hook-postinst
classabbyamp 9ef1c0cb99 dracut: update to 107.
- change the dracut-uefi hook to use the initramfs alternatives group.
  this also means we don't need the hacky `CREATE_UEFI_BUNDLES` variable
    fixes: #53300
- don't silence dracut output (match mkinitcpio's hook)
2025-06-12 21:03:40 -04:00

14 lines
250 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 usr/bin/dracut ]; then
exit 0
fi
usr/bin/dracut --force boot/initramfs-${VERSION}.img ${VERSION}