only install ucode if not present on _DESTDIR

This commit is contained in:
Tobias Powalowski 2023-02-02 13:48:49 +01:00
parent 37474d74c2
commit b22c76b24a

View file

@ -961,9 +961,11 @@ _install_bootloader() {
_select_source || return 1 _select_source || return 1
fi fi
_prepare_pacman _prepare_pacman
if [[ -n "${_UCODE_PKG}" ]]; then if [[ -n "${_UCODE}" ]]; then
_PACKAGES="${_UCODE_PKG}" if ! [[ -f ${_DESTDIR}/boot/${_UCODE} ]]; then
_run_pacman _PACKAGES="${_UCODE_PKG}"
_run_pacman
fi
fi fi
if [[ -n "${_UEFI_BOOT}" ]]; then if [[ -n "${_UEFI_BOOT}" ]]; then
_install_bootloader_uefi _install_bootloader_uefi