File tree 2 files changed +8
-3
lines changed
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -24,9 +24,7 @@ main() {
24
24
25
25
[[ ${EUID} -eq 0 ]] || die " Please run this script as root"
26
26
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"
30
28
}
31
29
32
30
main
Original file line number Diff line number Diff line change @@ -29,4 +29,11 @@ elif [[ ${KERNEL_INSTALL_LAYOUT} == "uki" ]]; then
29
29
elif [[ ${COMMAND} == remove ]]; then
30
30
rm -f " ${UKI_DIR} /${KERNEL_INSTALL_ENTRY_TOKEN} -${KERNEL_VERSION} .png" || exit 1
31
31
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
32
39
fi
You can’t perform that action at this time.
0 commit comments