mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-08 05:26:58 +02:00
build_library: copy grub.efi in pxe/cpio generation
This commit is contained in:
parent
069ae5644f
commit
a03cef558e
@ -551,13 +551,15 @@ _write_cpio_common() {
|
|||||||
# The cpio "disk" is a bit special,
|
# The cpio "disk" is a bit special,
|
||||||
# consists of a kernel+initrd not a block device
|
# consists of a kernel+initrd not a block device
|
||||||
_write_cpio_disk() {
|
_write_cpio_disk() {
|
||||||
local base_dir="${VM_TMP_ROOT}/usr"
|
local base_dir="${VM_TMP_ROOT}"
|
||||||
local dst_dir=$(_dst_dir)
|
local dst_dir=$(_dst_dir)
|
||||||
local vmlinuz_name="$(_dst_name ".vmlinuz")"
|
local vmlinuz_name="$(_dst_name ".vmlinuz")"
|
||||||
|
local grub_name="$(_dst_name "_grub.efi")"
|
||||||
_write_cpio_common $@
|
_write_cpio_common $@
|
||||||
# Pull the kernel out of the filesystem
|
# Pull the kernel and loader out of the filesystem
|
||||||
cp "${base_dir}"/boot/vmlinuz "${dst_dir}/${vmlinuz_name}"
|
cp "${base_dir}"/boot/coreos/vmlinuz-a "${dst_dir}/${vmlinuz_name}"
|
||||||
VM_GENERATED_FILES+=( "${dst_dir}/${vmlinuz_name}" )
|
cp "${base_dir}"/boot/coreos/grub/x86_64-efi/core.efi "${dst_dir}/${grub_name}"
|
||||||
|
VM_GENERATED_FILES+=( "${dst_dir}/${vmlinuz_name}" "${dst_dir}/${grub_name}" )
|
||||||
}
|
}
|
||||||
|
|
||||||
_write_iso_disk() {
|
_write_iso_disk() {
|
||||||
|
Loading…
Reference in New Issue
Block a user