Skip to content

Commit 7b5f096

Browse files
95-refind-copy-icon.install: also copy icon in efistub layout
Signed-off-by: Andrew Ammerlaan <[email protected]>
1 parent 009bc8c commit 7b5f096

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

hooks/95-refind-copy-icon.install

+1-3
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ main() {
2424

2525
[[ ${EUID} -eq 0 ]] || die "Please run this script as root"
2626

27-
if [[ ${INSTALLKERNEL_LAYOUT} == compat || ${INSTALLKERNEL_LAYOUT} == uki ]]; then
28-
cp "${REFIND_ICON}" "${img%.efi}.png" || die "Failed to copy icon file"
29-
fi
27+
cp "${REFIND_ICON}" "${img%.efi}.png" || die "Failed to copy icon file"
3028
}
3129

3230
main

hooks/systemd/95-refind-copy-icon.install

+7
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,11 @@ elif [[ ${KERNEL_INSTALL_LAYOUT} == "uki" ]]; then
2929
elif [[ ${COMMAND} == remove ]]; then
3030
rm -f "${UKI_DIR}/${KERNEL_INSTALL_ENTRY_TOKEN}-${KERNEL_VERSION}.png" || exit 1
3131
fi
32+
elif [[ ${KERNEL_INSTALL_LAYOUT} == "efistub" ]]; then
33+
EFISTUB_DIR="${KERNEL_INSTALL_BOOT_ROOT}/EFI/Gentoo"
34+
if [[ ${COMMAND} == add ]]; then
35+
cp "${REFIND_ICON}" "${EFISTUB_DIR}/kernel-${KERNEL_VERSION}.png" || exit 1
36+
elif [[ ${COMMAND} == remove ]]; then
37+
rm -f "${EFISTUB_DIR}/kernel-${KERNEL_VERSION}.png" || exit 1
38+
fi
3239
fi

0 commit comments

Comments
 (0)