<div dir="ltr"><div class="gmail_quote"><div dir="ltr">Hi, sorry in advance if I haven't reported this correctly. I was hesitant to file a bug report until I was sure it is a bug, and what the bug was in.<div><br></div>
<div>I just tested lz4 compression with mkinitcpio after noticing it in the conf.pacnew.</div>
<div><br></div><div>When I rebooted I got the following error after grub and my computer froze:</div><div>[0.<cut>] Initramfs unpacking failed: junk in compressed archive</div><div>[0.<cut>] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)</div>

<div>[0.<cut>] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.12.5-1-ARCH #1</div><div>[0.<cut>] Hardware name: Gigabyte Technology Co., Ltd. EP45-DS4/EP45-DS4, BIOS F10e 10/06/2010</div><div>[0.<cut>]  <3 lines, each containing 4 groups of 16 hexadecimal characters seperated by a space></div>

<div>[0.<cut>] Call Trace:</div><div><div>[0.<cut>]  [<ffffffff814ee44b>] dump_stack+0x54/0x8d</div></div><div><div>[0.<cut>]  [<ffffffff814eb62c>] panic+0xc8/0x1d7</div></div><div><div>[0.<cut>]  [<ffffffff818e2458>] mount_block_root+0x2a1/0x2b0</div>

</div><div><div>[0.<cut>]  [<ffffffff818e24ba>] mount_root+0x53/0x56</div></div><div><div>[0.<cut>]  [<ffffffff818e25f4>] prepare_namespace+0x137/0x16f</div></div><div><div>[0.<cut>]  [<ffffffff818e20df>] kernel_init_freeable+0x1d2/0x1e0</div>

</div><div><div>[0.<cut>]  [<ffffffff818e189a>] ? do_early_param+0x88/0x88</div><div></div></div><div>[0.<cut>]  [<ffffffff814e0c60>] ? rest_init+0x90/0x90</div><div></div><div>[0.<cut>]  [<ffffffff814e0c6e>] kernel_init+0xe/0x190</div>

<div></div><div>[0.<cut>]  [<ffffffff814fcf3c>] ret_from_fork+0x7c/0xb0</div><div></div><div><div>[0.<cut>]  [<ffffffff814e0c60>] ? rest_init+0x90/0x90</div><div></div></div><div><br></div><div>After I disabled lz4 via a chroot the system booted successfully again.<br>

</div><div><br></div><div>I saw the note about using a recent version of lz4 so I installed the most recent version with pacman before running mkinitcpio -p linux and no errors were produced.</div><div><br></div><div>So far I haven't found anything constructive from searching the internet but three possibilities have occurred to me:</div>

<div><br></div><div>1) I first found the messages to the linux kernel mailing list adding support for lz4 to the kernel, describing it for arm and x86 so I initially assumed lz4 compressed images weren't supported with x86_64.</div>

<div><br></div><div>2) I then read the thread (<a href="https://code.google.com/p/lz4/issues/detail?id=83" target="_blank">https://code.google.com/p/lz4/issues/detail?id=83</a>) linked from the lz4 commit in the mkinitcpio git repository (<a href="https://projects.archlinux.org/mkinitcpio.git/commit/?id=b5927393d103af9b8b2da80e8636b8aa52f80755" target="_blank">https://projects.archlinux.org/mkinitcpio.git/commit/?id=b5927393d103af9b8b2da80e8636b8aa52f80755</a>), although I'm not sure I understood everything in that thread I wonder if it may be a bug in lsinitcpio.</div>

<div><br></div><div>3) grub has "insmod gzio" in grub.cfg for all arch menu entries and looking at gzio on the grub git it states it is for gzip decompression. I also found lzopio.mod in /usr/lib/grub/i386-pc and /usr/lib/grub/x86_64-efi, though I can't find any description for it I wonder if grub needs another module for decompressing the lz4 ramdisk.</div>

<div><br></div><div><div>Has a lz4 compressed ramdisk worked for anyone else and if it has can you help me rule out any of these options or does anyone think I missed something?</div></div><div><br></div><div>I'm using kernel v3.12.5-1, grub (BIOS, not EFI) v2.00.1282.g5ae5c54-1, lz4 v109-2, mkinitcpio v16 and Arch x86_64.</div>

<div><br></div><div>Many thanks.</div><div><br></div><div>Please note: I copied the error message manually from the frozen computer and cut the times and the groups of hexadecimal characters relating to my motherboard/bios but I can recreate the issue to get them if it helps resolve the problem.</div>
</div></div></div>