From 4eb080af9c33b9fe3292c263ae2ea2e1ecc84d0f Mon Sep 17 00:00:00 2001 From: Mateusz Sylwestrzak Date: Sat, 24 Feb 2024 01:53:23 +0100 Subject: [PATCH] refind: allow menu-entry customization, fix build for aarch64 Closes: #48906 [via git-merge-pr] --- srcpkgs/refind/files/kernel.post-install | 13 ++++++++----- srcpkgs/refind/files/refind-kernel-hook.conf | 8 +++++++- .../patches/add-cross-compile-support.patch | 15 ++++++++++++++- srcpkgs/refind/template | 3 +-- 4 files changed, 30 insertions(+), 9 deletions(-) diff --git a/srcpkgs/refind/files/kernel.post-install b/srcpkgs/refind/files/kernel.post-install index fd18f9c45ff..92dc0b6fba7 100755 --- a/srcpkgs/refind/files/kernel.post-install +++ b/srcpkgs/refind/files/kernel.post-install @@ -12,7 +12,7 @@ if [ "z$UPDATE_REFIND_CONF" != "z1" ]; then exit 0; fi -: ${REFIND_CONF:=boot/EFI/refind/refind.conf} +: "${REFIND_CONF:=boot/EFI/refind/refind.conf}" REFIND_CONF="${REFIND_CONF#/}" mkdir -p "${REFIND_CONF%/*}" @@ -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 <