Skip to content

Commit 5fa3e02

Browse files
committed
[fix] : Fixed efi in allarch
1 parent 1492888 commit 5fa3e02

File tree

1 file changed

+20
-8
lines changed

1 file changed

+20
-8
lines changed

allarch.sh

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,6 +1024,7 @@ make_isolinux() {
10241024
}
10251025

10261026
# Prepare /EFI
1027+
# Todo 2020/10/13 Hayao0819: x86_64に依存しているのをなくす
10271028
make_efi() {
10281029
mkdir -p "${work_dir}/iso/EFI/boot"
10291030
for arch in ${all_arch[@]}; do
@@ -1042,14 +1043,23 @@ make_efi() {
10421043
s|%KERNEL_FILENAME%|${kernel_filename}|g;
10431044
s|%ARCH%|${arch}|g;
10441045
s|%INSTALL_DIR%|${install_dir}|g" \
1045-
"${script_path}/efiboot/loader/entries/archiso-usb.conf" > "${work_dir}/iso/loader/entries/archiso-${arch}-usb.conf"
1046+
"${script_path}/efiboot/loader/entries/archiso-usb.conf" > "${work_dir}/iso/loader/entries/archiso-${arch}.conf"
10461047
done
10471048

10481049
# edk2-shell based UEFI shell
10491050
# shellx64.efi is picked up automatically when on /
1050-
if [[ -f "${work_dir}/${arch}/airootfs/usr/share/edk2-shell/x64/Shell_Full.efi" ]]; then
1051-
cp "${work_dir}/${arch}/airootfs/usr/share/edk2-shell/x64/Shell_Full.efi" "${work_dir}/iso/shellx64.efi"
1052-
fi
1051+
#if [[ -f "${work_dir}/${arch}/airootfs/usr/share/edk2-shell/x64/Shell_Full.efi" ]]; then
1052+
# cp "${work_dir}/${arch}/airootfs/usr/share/edk2-shell/x64/Shell_Full.efi" "${work_dir}/iso/shellx64.efi"
1053+
#fi
1054+
1055+
#if [[ "${arch}" = "x86_64" ]]; then
1056+
# cp "${work_dir}/${arch}/airootfs/usr/share/edk2-shell/x64/Shell_Full.efi" "${work_dir}/iso/shellx64.efi"
1057+
#fi
1058+
1059+
local _efi_shell_arch
1060+
for _efi_shell_arch in "${work_dir}"/${arch}/airootfs/usr/share/edk2-shell/*; do
1061+
cp "${_efi_shell_arch}/Shell_Full.efi" "${work_dir}/iso/shell_$(basename ${_efi_shell_arch}).efi"
1062+
done
10531063
}
10541064

10551065
# Prepare efiboot.img::/EFI for "El Torito" EFI boot mode
@@ -1074,7 +1084,7 @@ make_efiboot() {
10741084
for arch in ${all_arch[@]}; do
10751085
(
10761086
local __bootfile="$(basename "$(ls "${work_dir}/${arch}/airootfs/usr/lib/systemd/boot/efi/systemd-boot"*".efi" )")"
1077-
cp "${work_dir}/${arch}/airootfs/usr/lib/systemd/boot/efi/${__bootfile}" "${work_dir}/iso/EFI/boot/${__bootfile#systemd-}"
1087+
cp "${work_dir}/${arch}/airootfs/usr/lib/systemd/boot/efi/${__bootfile}" "${work_dir}/efiboot/boot/${__bootfile#systemd-}"
10781088
)
10791089
done
10801090

@@ -1091,9 +1101,11 @@ make_efiboot() {
10911101
done
10921102

10931103
# shellx64.efi is picked up automatically when on /
1094-
if [[ -f "${work_dir}/iso/shellx64.efi" ]]; then
1095-
cp "${work_dir}/iso/shellx64.efi" "${work_dir}/efiboot/"
1096-
fi
1104+
#if [[ -f "${work_dir}/iso/shellx64.efi" ]]; then
1105+
# cp "${work_dir}/iso/shellx64.efi" "${work_dir}/efiboot/"
1106+
#fi
1107+
1108+
cp "${work_dir}/iso/shell"*".efi" "${work_dir}/efiboot/"
10971109

10981110
umount -d "${work_dir}/efiboot"
10991111
}

0 commit comments

Comments
 (0)