There are two struct linux_header variables in efi_boot(), only one of
which points to the boot params that we pass to the kernel we're
booting. Fix the initramfs code to update the correct variable,
otherwise the kernel won't know about any initramfs we've loaded.
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
goto free_map;
}
- hdr->ramdisk_image = (uint32_t)last;
- hdr->ramdisk_size = irf_size;
+ bhdr->ramdisk_image = (uint32_t)last;
+ bhdr->ramdisk_size = irf_size;
/* Copy initramfs into allocated memory */
for (ip = initramfs->next; ip->len; ip = ip->next) {