add kernel to efi.img for secure boot

This commit is contained in:
Tobias Powalowski 2022-04-06 21:38:19 +02:00
parent ae8c08c1f6
commit f011b8046b
2 changed files with 2 additions and 1 deletions

View file

@ -340,7 +340,7 @@ do_secureboot_keys() {
CN=$(cat "${ANSWER}") CN=$(cat "${ANSWER}")
done done
secureboot-keys.sh -name="${CN}" "${DESTDIR}/${KEYDIR}" > "${LOG}" 2>&1 || return 1 secureboot-keys.sh -name="${CN}" "${DESTDIR}/${KEYDIR}" > "${LOG}" 2>&1 || return 1
DIALOG --infobox "Setup keys created:\n\nCommon name(CN) ${CN} used for your keys in\n${DESTDIR}/${KEYDIR}\n\nContinuing in 10 seconds..." 8 50 DIALOG --infobox "Setup keys created:\n\nCommon name(CN) ${CN}\nused for your keys in ${DESTDIR}/${KEYDIR}\n\nContinuing in 10 seconds..." 8 60
sleep 10 sleep 10
else else
DIALOG --infobox "Setup keys:\n-Directory ${DESTDIR}/${KEYDIR} exists\n-assuming keys are already created\n-trying to use existing keys now\n\nContinuing in 10 seconds..." 8 50 DIALOG --infobox "Setup keys:\n-Directory ${DESTDIR}/${KEYDIR} exists\n-assuming keys are already created\n-trying to use existing keys now\n\nContinuing in 10 seconds..." 8 50

View file

@ -57,6 +57,7 @@ _prepare_kernel_initramfs_files() {
mv "/usr/lib/initcpio/functions.old" "/usr/lib/initcpio/functions" mv "/usr/lib/initcpio/functions.old" "/usr/lib/initcpio/functions"
mv "/usr/bin/mkinitcpio.old" "/usr/bin/mkinitcpio" mv "/usr/bin/mkinitcpio.old" "/usr/bin/mkinitcpio"
install -m644 "${ALL_kver}" "${_ISODIR}/boot/vmlinuz_${_RUNNING_ARCH}" install -m644 "${ALL_kver}" "${_ISODIR}/boot/vmlinuz_${_RUNNING_ARCH}"
install -m644 "${ALL_kver}" "${_ISODIR}/EFI/BOOT/vmlinuz_${_RUNNING_ARCH}"
# install ucode files # install ucode files
[[ "${_RUNNING_ARCH}" == "aarch64" ]] || cp /boot/intel-ucode.img "${_ISODIR}/boot/" [[ "${_RUNNING_ARCH}" == "aarch64" ]] || cp /boot/intel-ucode.img "${_ISODIR}/boot/"
cp /boot/amd-ucode.img "${_ISODIR}/boot/" cp /boot/amd-ucode.img "${_ISODIR}/boot/"