From: hayao Date: Sun, 15 Nov 2020 11:44:09 +0000 (+0900) Subject: [update] : Supported rescue entry in EFI X-Git-Tag: rc3-alpha1^2~5 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=d5fd37bdb0f3b5b6b4c7905be9b8c3568ed56a09;p=alterlinux%2Falterlinux.git [update] : Supported rescue entry in EFI --- diff --git a/build.sh b/build.sh index 77987586..8c1dfdc6 100755 --- a/build.sh +++ b/build.sh @@ -918,6 +918,15 @@ make_efi() { s|%INSTALL_DIR%|${install_dir}|g" \ "${script_path}/efiboot/${_use_config_name}/entries/archiso-usb.conf" > "${isofs_dir}/loader/entries/archiso-${arch}.conf" + if [[ "${norescue_entry}" = false ]]; then + sed "s|%ARCHISO_LABEL%|${iso_label}|g; + s|%OS_NAME%|${os_name}|g; + s|%KERNEL_FILENAME%|${kernel_filename}|g; + s|%ARCH%|${arch}|g; + s|%INSTALL_DIR%|${install_dir}|g" \ + "${script_path}/efiboot/${_use_config_name}/entries/archiso-usb-rescue.conf" > "${isofs_dir}/loader/entries/archiso-${arch}-rescue.conf" + fi + # edk2-shell based UEFI shell local _efi_shell _efi_shell_arch for _efi_shell in "${work_dir}"/${arch}/airootfs/usr/share/edk2-shell/*; do @@ -974,6 +983,15 @@ make_efiboot() { s|%INSTALL_DIR%|${install_dir}|g" \ "${script_path}/efiboot/${_use_config_name}/entries/archiso-cd.conf" > "${work_dir}/efiboot/loader/entries/archiso-${arch}.conf" + if [[ "${norescue_entry}" = false ]]; then + sed "s|%ARCHISO_LABEL%|${iso_label}|g; + s|%OS_NAME%|${os_name}|g; + s|%KERNEL_FILENAME%|${kernel_filename}|g; + s|%ARCH%|${arch}|g; + s|%INSTALL_DIR%|${install_dir}|g" \ + "${script_path}/efiboot/${_use_config_name}/entries/archiso-cd-rescue.conf" > "${work_dir}/efiboot/loader/entries/archiso-${arch}-rescue.conf" + fi + cp "${isofs_dir}/EFI/shell"*".efi" "${work_dir}/efiboot/EFI/" umount -d "${work_dir}/efiboot"