mirror of
https://github.com/flatcar/scripts.git
synced 2025-11-29 14:31:46 +01:00
build_library: fix grub loader copy for arm64
This commit is contained in:
parent
ccafb1b3a5
commit
1fd668ef0d
@ -558,7 +558,14 @@ _write_cpio_disk() {
|
|||||||
_write_cpio_common $@
|
_write_cpio_common $@
|
||||||
# Pull the kernel and loader out of the filesystem
|
# Pull the kernel and loader out of the filesystem
|
||||||
cp "${base_dir}"/boot/coreos/vmlinuz-a "${dst_dir}/${vmlinuz_name}"
|
cp "${base_dir}"/boot/coreos/vmlinuz-a "${dst_dir}/${vmlinuz_name}"
|
||||||
cp "${base_dir}"/boot/coreos/grub/x86_64-efi/core.efi "${dst_dir}/${grub_name}"
|
|
||||||
|
local grub_arch
|
||||||
|
case $BOARD in
|
||||||
|
amd64-usr) grub_arch="x86_64-efi" ;;
|
||||||
|
arm64-usr) grub_arch="arm64-efi" ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
cp "${base_dir}/boot/coreos/grub/${grub_arch}/core.efi" "${dst_dir}/${grub_name}"
|
||||||
VM_GENERATED_FILES+=( "${dst_dir}/${vmlinuz_name}" "${dst_dir}/${grub_name}" )
|
VM_GENERATED_FILES+=( "${dst_dir}/${vmlinuz_name}" "${dst_dir}/${grub_name}" )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user