mirror of
https://github.com/kairos-io/packages.git
synced 2025-09-16 07:18:36 +00:00
Build arm64 livecd-grub2 packages (#150)
This commit is contained in:
@@ -1,38 +1,33 @@
|
||||
{{ if eq .Values.arch "x86_64" }} # This makes the package available only on amd64 for now
|
||||
image: "opensuse/leap:15.3"
|
||||
|
||||
prelude:
|
||||
- zypper in -y git
|
||||
{{ if .Values.arch }}
|
||||
{{if .Values.arch }}
|
||||
{{if eq .Values.arch "x86_64"}}
|
||||
- zypper in -y --no-recommends syslinux grub2-i386-pc grub2-x86_64-efi shim
|
||||
{{end}}
|
||||
{{if eq .Values.arch "aarch64"}}
|
||||
- zypper in -y --no-recommends syslinux-x86_64 grub2-i386-pc grub2-arm64-efi shim
|
||||
- zypper in -y --no-recommends syslinux
|
||||
{{end}}
|
||||
{{end}}
|
||||
- zypper in -y --no-recommends grub2 grub2-i386-pc grub2-x86_64-efi grub2-arm64-efi shim
|
||||
- zypper cc
|
||||
- grub2-mkimage -O i386-pc -o /usr/share/grub2/i386-pc/core.img -p /boot/grub2 -d /usr/share/grub2/i386-pc ext2 iso9660 linux echo configfile search_label search_fs_file search search_fs_uuid ls normal gzio png fat gettext font minicmd gfxterm gfxmenu all_video xfs btrfs lvm luks gcry_rijndael gcry_sha256 gcry_sha512 crypto cryptodisk test true loadenv part_gpt part_msdos biosdisk vga vbe chain boot
|
||||
- cat /usr/share/grub2/i386-pc/cdboot.img /usr/share/grub2/i386-pc/core.img > /usr/share/grub2/i386-pc/eltorito.img
|
||||
{{end}}
|
||||
- git clone https://github.com/kairos-io/kairos && cd kairos && git checkout -b v"{{.Values.kairos_tag}}"
|
||||
|
||||
steps:
|
||||
{{if eq .Values.name "grub2"}}
|
||||
{{ if .Values.arch }}
|
||||
{{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/
|
||||
{{end}}
|
||||
{{if eq .Values.arch "aarch64"}}
|
||||
- mkdir -p /boot/arm64/loader/grub2/fonts && cp -p /usr/share/grub2/unicode.pf2 /boot/arm64/loader/grub2/fonts
|
||||
{{end}}
|
||||
{{end}}
|
||||
- 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}}
|
||||
{{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}}
|
||||
{{end}}
|
||||
{{if eq .Values.name "grub2-efi-image"}}
|
||||
{{if .Values.arch }}
|
||||
{{if eq .Values.arch "x86_64"}}
|
||||
@@ -42,7 +37,7 @@ steps:
|
||||
- cp /usr/share/efi/x86_64/grub.efi /EFI/BOOT/grub.efi
|
||||
- cp /usr/share/efi/x86_64/MokManager.efi /EFI/BOOT/MokManager.efi
|
||||
{{end}}
|
||||
{{if eq .Values.arch "aarch64"}}
|
||||
{{if eq .Values.arch "arm64"}}
|
||||
- mkdir -p /EFI/BOOT
|
||||
# For removable drives the name of the efi needs to be bootaa64.efi
|
||||
- cp /usr/share/efi/aarch64/shim.efi /EFI/BOOT/bootaa64.efi
|
||||
@@ -52,4 +47,3 @@ steps:
|
||||
{{end}}
|
||||
- cp config/grub_live_efi.cfg /EFI/BOOT/grub.cfg
|
||||
{{end}}
|
||||
{{ end }}
|
||||
|
@@ -1,13 +1,13 @@
|
||||
packages:
|
||||
- name: "grub2"
|
||||
category: "livecd"
|
||||
version: "0.0.6"
|
||||
version: "0.0.7"
|
||||
arch: x86_64
|
||||
description: "Grub2 booloader for live systems"
|
||||
kairos_tag: "1.6.0"
|
||||
- name: "grub2-efi-image"
|
||||
category: "livecd"
|
||||
version: "0.0.6"
|
||||
version: "0.0.7"
|
||||
arch: x86_64
|
||||
kairos_tag: "1.6.0"
|
||||
description: "Grub2 booloader EFI image for live systems"
|
||||
|
Reference in New Issue
Block a user