Re: [linux-next-20160302] Can't unpack initramfs.

From: Ingo Molnar
Date: Sat Mar 05 2016 - 06:26:25 EST



* Tetsuo Handa <penguin-kernel@xxxxxxxxxxxxxxxxxxx> wrote:

> I'm hitting a problem that initramfs is corrupted when booting from GRUB2 on VMware Player 6.0.6.
> This problem does not occur when booting from qemu-kvm or from PXE on VMware Player 6.0.6.

> Bisection reached to "x86/setup: Calculate ramdisk parameters only once".

that commit is crap, as it changed the size calculation:

- u64 ramdisk_size = get_ramdisk_size();

- ramdisk_size);
+ ramdisk->size);

+ struct ramdisk ramdisk = {
+ .start_addr = get_ramdisk_image(),
+ .size = PAGE_ALIGN(get_ramdisk_size()),
+ .reserve_ramdisk = true
+ };

I've zapped it.

Thanks,

Ingo