Provide bios files in arm64 livecd packages (#182)

This commit is contained in:
Itxaka 2023-04-13 15:49:49 +02:00 committed by GitHub
parent 6197e90f50
commit 09df5ebf12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 4 deletions

View File

@ -15,18 +15,21 @@ prelude:
steps:
{{if eq .Values.name "grub2"}}
- mkdir -p /boot/x86_64/loader
{{if .Values.arch }}
{{if eq .Values.arch "x86_64"}}
- mkdir -p /boot/x86_64/loader/grub2/fonts && cp -p /usr/share/grub2/unicode.pf2 /boot/x86_64/loader/grub2/fonts
- mkdir -p /boot/grub2/x86_64-efi/ && cp -p /usr/share/grub2/x86_64-efi/* /boot/grub2/x86_64-efi/
- mkdir -p /boot/arm64/loader/grub2/fonts && cp -p /usr/share/grub2/unicode.pf2 /boot/arm64/loader/grub2/fonts
- mkdir -p /boot/grub2/i386-pc && cp -p /usr/share/grub2/i386-pc/* /boot/grub2/i386-pc/
- mkdir -p /boot/x86_64/loader
- cp -p /usr/share/grub2/i386-pc/eltorito.img /usr/share/grub2/i386-pc/boot_hybrid.img /usr/share/syslinux/isolinux.bin /usr/share/syslinux/menu.c32 /usr/share/syslinux/chain.c32 /usr/share/syslinux/mboot.c32 /boot/x86_64/loader
{{end}}
{{if eq .Values.arch "arm64"}}
# arm64 doesn't have bios boot, but the installer(elemental-cli) still builds hybrid isos for all arches, so we need to provide these files in the arm64 package
- cp -p /usr/share/grub2/i386-pc/eltorito.img /usr/share/grub2/i386-pc/boot_hybrid.img /boot/x86_64/loader
{{end}}
{{end}}
- cp -p kairos/overlay/files-iso/boot/grub2/grub.cfg /boot/grub2/grub.cfg
#- cp -p config/grub_live.cfg /boot/grub2/grub.cfg
{{end}}
{{if eq .Values.name "grub2-efi-image"}}
{{if .Values.arch }}

View File

@ -1,13 +1,13 @@
packages:
- name: "grub2"
category: "livecd"
version: "0.0.7"
version: "0.0.8"
arch: x86_64
description: "Grub2 booloader for live systems"
kairos_tag: "1.6.0"
- name: "grub2-efi-image"
category: "livecd"
version: "0.0.7"
version: "0.0.8"
arch: x86_64
kairos_tag: "1.6.0"
description: "Grub2 booloader EFI image for live systems"