mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
fix aarch64 iso creation
This commit is contained in:
parent
56fc900d29
commit
2a5ce6229e
3 changed files with 5 additions and 4 deletions
|
@ -16,7 +16,7 @@ Environment changes:
|
|||
- new MOTD with listed architecture and Manage Archboot section
|
||||
- shrink aarch64 iso ->125M less by removing dtbs, replacing Image
|
||||
with Image.gz kernel and remove /EFI directory
|
||||
- shrink x86_64 iso -> 25M less by removing /EFI directory
|
||||
- shrink x86_64 iso with new grub layout -> 35M saved
|
||||
- remove not installed packages from local pacman database
|
||||
update-installer:
|
||||
- added network check
|
||||
|
|
|
@ -232,9 +232,10 @@ _grub_mkrescue() {
|
|||
# --modification-date= for boot.catalog
|
||||
# -- --rm_r /efi .disk/ /boot/grub/{roms,locale} ${_RESCUE_REMOVE} for removing reproducibility breakers
|
||||
echo "Generating ${_ARCH} hybrid ISO..."
|
||||
[[ "${_ARCH}" == "x86_64" ]] && _RESCUE_REMOVE="mach_kernel /System"
|
||||
[[ "${_ARCH}" == "x86_64" ]] && _RESCUE_REMOVE="mach_kernel /System /boot/grub/i386-efi /boot/grub/x86_64-efi"
|
||||
[[ "${_ARCH}" == "aarch64" ]] && _RESCUE_REMOVE="/boot/grub/arm64-efi"
|
||||
#shellcheck disable=SC2086
|
||||
grub-mkrescue --set_all_file_dates 'Jan 1 00:00:00 UTC 1970' --modification-date=1970010100000000 --compress=xz --fonts="ter-u16n" --locales="" --themes="" -o "${_IMAGENAME}.iso" "${_ISODIR}"/ "boot/grub/archboot-main-grub.cfg=${_GRUB_CONFIG}" "boot/grub/grub.cfg=/usr/share/archboot/grub/archboot-iso-grub.cfg" -- --rm_r /boot/grub/{roms,i386-efi,locale,x86_64-efi} /efi .disk/ ${_RESCUE_REMOVE} &> "${_IMAGENAME}.log"
|
||||
grub-mkrescue --set_all_file_dates 'Jan 1 00:00:00 UTC 1970' --modification-date=1970010100000000 --compress=xz --fonts="ter-u16n" --locales="" --themes="" -o "${_IMAGENAME}.iso" "${_ISODIR}"/ "boot/grub/archboot-main-grub.cfg=${_GRUB_CONFIG}" "boot/grub/grub.cfg=/usr/share/archboot/grub/archboot-iso-grub.cfg" -- --rm_r /boot/grub/{roms,locale} /efi .disk/ ${_RESCUE_REMOVE} &> "${_IMAGENAME}.log"
|
||||
}
|
||||
|
||||
_reproducibility_iso() {
|
||||
|
|
|
@ -665,7 +665,7 @@ initrd (loop)/boot/initramfs-x86_64.img
|
|||
<li>Please read <a href="https://www.rodsbooks.com/efi-bootloaders/secureboot.html#initial_shim"><strong>Roderick Smith’s guide</strong></a> first for initial shim setup.</li>
|
||||
<li>In order to boot in <a href="https://wiki.archlinux.org/title/Secure_Boot" title="Secure Boot"><strong>Secure Boot</strong></a> mode on first boot:
|
||||
<ul>
|
||||
<li>you need to add the <strong>hash</strong> of <strong>grub</strong> and <strong>kernel</strong> from disk:<br><strong>/EFI/BOOT/GRUB<ARCH>.EFI</strong> and <strong>/EFI/BOOT/VMLINUZ_<ARCH></strong> </li>
|
||||
<li>you need to add the <strong>hash</strong> of <strong>grub</strong> and <strong>kernel</strong> from disk:<br><strong>/EFI/BOOT/GRUB<ARCH>.EFI</strong> and <strong>/boot/vmlinuz-<ARCH></strong> </li>
|
||||
</ul></li>
|
||||
<li>Tools included for key management: <strong>KeyTool, HashTool, mokutil, sbsigntools, sbctl</strong> and <strong>mkkeys.sh</strong></li>
|
||||
<li>setup script supports the following <a href="https://wiki.archlinux.org/title/Secure_Boot" title="Secure Boot"><strong>Secure Boot</strong></a> layout:
|
||||
|
|
Loading…
Reference in a new issue