File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -873,13 +873,14 @@ make_efi() {
873873 done
874874
875875 # edk2-shell based UEFI shell
876- local _efi_shell _efi_shell_arch
877- for _efi_shell in " ${build_dir} " /${arch} /airootfs/usr/share/edk2-shell/* ; do
878- _efi_shell_arch=" $( basename ${_efi_shell} ) "
879- if [[ " ${_efi_shell_arch} " == ' aarch64' ]]; then
880- cp " ${_efi_shell} /Shell.efi" " ${isofs_dir} /EFI/shell_${_efi_shell_arch} .efi"
876+ local _efi_shell_arch
877+ for _efi_shell_arch in $( find " ${airootfs_dir} /usr/share/edk2-shell" -mindepth 1 -maxdepth 1 -type d -print0 | xargs -0 -I{} basename {}) ; do
878+ if [[ -f " ${airootfs_dir} /usr/share/edk2-shell/${_efi_shell_arch} /Shell_Full.efi" ]]; then
879+ cp " ${airootfs_dir} /usr/share/edk2-shell/${_efi_shell_arch} /Shell_Full.efi" " ${isofs_dir} /EFI/shell_${_efi_shell_arch} .efi"
880+ elif [[ -f " ${airootfs_dir} /usr/share/edk2-shell/${_efi_shell_arch} /Shell.efi" ]]; then
881+ cp " ${airootfs_dir} /usr/share/edk2-shell/${_efi_shell_arch} /Shell.efi" " ${isofs_dir} /EFI/shell_${_efi_shell_arch} .efi"
881882 else
882- cp " ${_efi_shell} /Shell_Full.efi " " ${isofs_dir} /EFI/shell_ ${_efi_shell_arch} .efi "
883+ continue
883884 fi
884885 cat - > " ${isofs_dir} /loader/entries/uefi-shell-${_efi_shell_arch} .conf" << EOF
885886title UEFI Shell ${_efi_shell_arch}
You can’t perform that action at this time.
0 commit comments