From 64d929d44668d5c5a4fc487b432dbd0c81ee5c14 Mon Sep 17 00:00:00 2001 From: Mateusz Sylwestrzak Date: Sat, 24 Feb 2024 01:53:23 +0100 Subject: [PATCH] refind: add LABEL and BOOT_PREFIX for misc setups While REFIND_LABEL identifies the volume on which vmlinuz and initramfs files reside REFIND_BOOT_PREFIX prepends a path that is relative to this volume. This commit also fixes aarch64 build problems related to binutils 2.38+ --- srcpkgs/refind/files/kernel.post-install | 11 +++++++---- srcpkgs/refind/files/refind-kernel-hook.conf | 8 +++++++- .../patches/add-cross-compile-support.patch | 15 ++++++++++++++- srcpkgs/refind/template | 3 +-- 4 files changed, 29 insertions(+), 8 deletions(-) diff --git a/srcpkgs/refind/files/kernel.post-install b/srcpkgs/refind/files/kernel.post-install index fd18f9c45ffe07..6262cecf5f445e 100755 --- a/srcpkgs/refind/files/kernel.post-install +++ b/srcpkgs/refind/files/kernel.post-install @@ -20,14 +20,17 @@ touch "$REFIND_CONF" tmpfile=$(mktemp /tmp/refind.XXXXXXX) +: ${REFIND_LABEL:="Void Linux"} +: ${REFIND_BOOT_PREFIX:=""} + zversion=$(echo "$VERSION" | sed 's/[.]/[.]/g') zentry=$(cat <