mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-25 06:52:56 +02:00
- 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)
20 lines
451 B
Bash
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}
|