add EFISTUB to iso script

This commit is contained in:
Tobias Powalowski 2022-05-15 10:20:09 +02:00
parent f2c73ac37b
commit 17fd8b0ae9
3 changed files with 17 additions and 2 deletions

View file

@ -13,6 +13,7 @@ _prepare_kernel_initramfs_files || exit 1
_prepare_fedora_shim_bootloaders_aarch64 || exit 1 _prepare_fedora_shim_bootloaders_aarch64 || exit 1
_prepare_efitools_uefi || exit 1 _prepare_efitools_uefi || exit 1
_prepare_uefi_AA64 || exit 1 _prepare_uefi_AA64 || exit 1
_prepare_systemd-boot_AA64 || exit 1
_prepare_background || exit 1 _prepare_background || exit 1
_reproducibility _reproducibility
_prepare_uefi_image || exit 1 _prepare_uefi_image || exit 1

View file

@ -15,6 +15,7 @@ _prepare_uefi_shell_tianocore || exit 1
_prepare_efitools_uefi || exit 1 _prepare_efitools_uefi || exit 1
_prepare_uefi_X64 || exit 1 _prepare_uefi_X64 || exit 1
_prepare_uefi_IA32 || exit 1 _prepare_uefi_IA32 || exit 1
_prepare_systemd-boot_X64 || exit 1
_prepare_background || exit 1 _prepare_background || exit 1
_reproducibility _reproducibility
_prepare_uefi_image || exit 1 _prepare_uefi_image || exit 1

View file

@ -145,6 +145,13 @@ _prepare_systemd-boot_X64() {
cp /usr/lib/systemd/boot/efi/systemd-bootx64.efi ${_ISODIR}/boot/systemd-boot/ cp /usr/lib/systemd/boot/efi/systemd-bootx64.efi ${_ISODIR}/boot/systemd-boot/
cp /usr/share/archboot/systemd-boot/boot/loader/loader-x64.conf \ cp /usr/share/archboot/systemd-boot/boot/loader/loader-x64.conf \
${_ISODIR}/boot/systemd-boot/loader-x64.conf ${_ISODIR}/boot/systemd-boot/loader-x64.conf
if [[ -e ${_ISODIR}/boot/initramfs_x86_64.img ]]; then
cp /usr/share/archboot/systemd-boot/boot/loader/entries/archboot-x64.conf \
${_ISODIR}/boot/systemd-boot/entries/archboot-x64.conf
else
cp /usr/share/archboot/systemd-boot/boot/loader/entries/archboot-x64.conf \
${_ISODIR}/boot/systemd-boot/entries/archboot-x64.conf
fi
} }
_prepare_systemd-boot_AA64() { _prepare_systemd-boot_AA64() {
@ -154,12 +161,18 @@ _prepare_systemd-boot_AA64() {
cp /usr/lib/systemd/boot/efi/systemd-bootaa64.efi ${_ISODIR}/boot/systemd-boot/ cp /usr/lib/systemd/boot/efi/systemd-bootaa64.efi ${_ISODIR}/boot/systemd-boot/
cp /usr/share/archboot/systemd-boot/boot/loader/loader-aa64.conf \ cp /usr/share/archboot/systemd-boot/boot/loader/loader-aa64.conf \
${_ISODIR}/boot/systemd-boot/loader-aa64.conf ${_ISODIR}/boot/systemd-boot/loader-aa64.conf
if [[ -e ${_ISODIR}/boot/initramfs_aarch64.img ]]; then
cp /usr/share/archboot/systemd-boot/boot/loader/entries/archboot-aa64.conf \
${_ISODIR}/boot/systemd-boot/entries/archboot-aa64.conf
else
cp /usr/share/archboot/systemd-boot/boot/loader/entries/archboot-aa64.conf \
${_ISODIR}/boot/systemd-boot/entries/archboot-aa64.conf
fi
} }
_prepare_systemd-boot_entry() { _prepare_systemd-boot_entry() {
echo "Prepare systemd-boot entry ..." echo "Prepare systemd-boot entry ..."
cp /usr/share/archboot/systemd-boot/boot/loader/entries/archboot-${1}.conf \
${_ISODIR}/boot/systemd-boot/entries/archboot-${1}.conf
} }
_reproducibility() { _reproducibility() {