Skip to content

Commit

Permalink
New patch
Browse files Browse the repository at this point in the history
  • Loading branch information
clsty committed May 24, 2024
1 parent 81b6f99 commit 979e2a1
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions patchedmkarchiso/mkarchiso.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--- mkarchiso-original 2024-04-22 10:51:40.498877018 +0800
+++ mkarchiso 2024-04-22 10:51:35.539891932 +0800
--- mkarchiso-original 2024-05-24 23:45:33.894614212 +0800
+++ mkarchiso 2024-05-24 23:45:25.774628290 +0800
@@ -1,6 +1,7 @@
#!/usr/bin/env bash
+# mkarchiso patched for arCNiso, mainly for secureboot.
Expand All @@ -8,7 +8,7 @@

set -e -u
shopt -s extglob
@@ -370,10 +371,22 @@
@@ -371,10 +372,22 @@
exec {ARCHISO_GNUPG_FD}<&-
unset ARCHISO_GNUPG_FD
fi
Expand All @@ -31,7 +31,7 @@
# Customize installation.
_make_customize_airootfs() {
local passwd=()
@@ -694,15 +707,20 @@
@@ -699,15 +712,20 @@
grub-mkstandalone -O i386-efi \
--modules="${grubmodules[*]}" \
--locales="en@quot" \
Expand All @@ -53,7 +53,7 @@
# TODO: Remove this branch.
_run_once _make_bootmode_uefi-x64.systemd-boot.esp
elif [[ " ${bootmodes[*]} " =~ uefi-x64.grub.esp ]]; then
@@ -711,12 +729,16 @@
@@ -716,12 +734,16 @@
efiboot_imgsize="$(du -bcs -- "${efiboot_files[@]}" 2>/dev/null | awk 'END { print $1 }')"
# Create a FAT image for the EFI system partition
_make_efibootimg "$efiboot_imgsize"
Expand All @@ -72,7 +72,7 @@
_run_once _make_common_bootmode_grub_copy_to_isofs

if [[ -e "${pacstrap_dir}/usr/share/edk2-shell/ia32/Shell_Full.efi" ]]; then
@@ -739,12 +761,18 @@
@@ -744,12 +766,18 @@
# manual partitioning and simply copying the ISO 9660 file system contents.
# This is not related to El Torito booting and no firmware uses these files.
_msg_info "Preparing an /EFI directory for the ISO 9660 file system..."
Expand All @@ -92,7 +92,7 @@
_run_once _make_common_bootmode_grub_copy_to_isofs

# edk2-shell based UEFI shell
@@ -771,23 +799,39 @@
@@ -776,23 +804,39 @@
grub-mkstandalone -O x86_64-efi \
--modules="${grubmodules[*]}" \
--locales="en@quot" \
Expand Down Expand Up @@ -135,7 +135,7 @@
_run_once _make_common_bootmode_grub_copy_to_isofs

if [[ -e "${pacstrap_dir}/usr/share/edk2-shell/x64/Shell_Full.efi" ]]; then
@@ -817,12 +861,22 @@
@@ -822,12 +866,22 @@
# manual partitioning and simply copying the ISO 9660 file system contents.
# This is not related to El Torito booting and no firmware uses these files.
_msg_info "Preparing an /EFI directory for the ISO 9660 file system..."
Expand All @@ -159,7 +159,7 @@
_run_once _make_common_bootmode_grub_copy_to_isofs

# edk2-shell based UEFI shell
@@ -846,14 +900,19 @@
@@ -851,14 +905,19 @@
fi
# Calculate the required FAT image size in bytes
# shellcheck disable=SC2076
Expand All @@ -179,7 +179,7 @@
efiboot_files+=("${pacstrap_dir}/usr/lib/systemd/boot/efi/systemd-bootia32.efi"
"${pacstrap_dir}/usr/share/edk2-shell/ia32/Shell_Full.efi")
fi
@@ -900,13 +959,21 @@
@@ -905,13 +964,21 @@
_run_once _make_common_bootmode_systemd-boot_conf

# Prepare a FAT image for the EFI system partition
Expand All @@ -203,7 +203,7 @@
_run_once _make_common_bootmode_systemd-boot_conf.esp

# shellx64.efi is picked up automatically when on /
@@ -944,13 +1011,22 @@
@@ -949,13 +1016,22 @@
# manual partitioning and simply copying the ISO 9660 file system contents.
# This is not related to El Torito booting and no firmware uses these files.
_msg_info "Preparing an /EFI directory for the ISO 9660 file system..."
Expand All @@ -228,7 +228,7 @@
_run_once _make_common_bootmode_systemd-boot_conf.isofs

# edk2-shell based UEFI shell
@@ -976,13 +1052,16 @@
@@ -981,13 +1057,16 @@
_run_once _make_common_bootmode_systemd-boot_conf

# Prepare a FAT image for the EFI system partition
Expand All @@ -247,7 +247,7 @@
_run_once _make_common_bootmode_systemd-boot_conf.esp

# shellia32.efi is picked up automatically when on /
@@ -1010,13 +1089,16 @@
@@ -1015,13 +1094,16 @@
# manual partitioning and simply copying the ISO 9660 file system contents.
# This is not related to El Torito booting and no firmware uses these files.
_msg_info "Preparing an /EFI directory for the ISO 9660 file system..."
Expand Down

0 comments on commit 979e2a1

Please sign in to comment.