void-packages/srcpkgs/dracut/files/kernel-uefi-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

20 lines
451 B
Bash

#!/bin/sh
#
# Kernel post-install hook for dracut EFI bundle.
#
# Arguments passed to this script: $1 pkgname, $2 version.
#
PKGNAME="$1"
VERSION="$2"
. "${ROOTDIR}/etc/default/dracut-uefi-hook"
if [ ! -x usr/bin/dracut ]; then
exit 0
fi
mkdir -p ${UEFI_BUNDLE_DIR:=boot/efi/EFI/void}
usr/bin/dracut --force ${DRACUT_OPTIONS} \
${KERNEL_CMDLINE:+--kernel-cmdline="${KERNEL_CMDLINE}"} \
--uefi ${UEFI_BUNDLE_DIR}/linux-${VERSION}.efi ${VERSION}