Bug#700197: grub-common: /etc/grub.d/20_linux_xen should use module --nounzip for initrd

Lukas Schwaighofer lukas at schwaighofer.name
Sat Feb 9 19:51:37 UTC 2013


Package: grub-common
Version: 1.99-26
Severity: important

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Hi,

Boot entries generated by /etc/grub.d/20_linux_xen look like this
(unnecessary parts omitted):

multiboot /boot/xen-4.1-amd64.gz placeholder
module /boot/vmlinuz-3.2.0-4-amd64 placeholder [...]
module /boot/initrd.img-3.2.0-4-amd64

This causes the last module, which is the initramdisk, to be unzipped by
grub (and not by the linux kernel, which happens when booting without
xen, using the 'linux' and 'initrd' directives).

While this usually isn't a problem, the initramdisk may in fact contain
multiple concatenated archives (see
http://www.kernel.org/doc/Documentation/early-userspace/buffer-format.txt
for details). If that's the case and the first initrd is gzipped, grub
tries to unzip the whole initrd resulting in an error (and an unbootable
system).

I strongly suggest adding --nounzip to the module directive of the
initramdisk. The boot entries should look like this:

multiboot /boot/xen-4.1-amd64.gz placeholder
module /boot/vmlinuz-3.2.0-4-amd64 placeholder [...]
module --nounzip /boot/initrd.img-3.2.0-4-amd64


Kind regards,
Lukas Schwaighofer

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)

iQIcBAEBAgAGBQJRFqjJAAoJEMqNQAGevU6TBbwQAJtUnV41UZT4weL5ovTUwjL1
hMjmUqCQmr/7Q6MLwRjWJoWwATLzW+SVSK1rEzpqhTTwro281t+zLhCLXT6kJQTS
hzckUxDBpRbvvNHCsQIlwrCQ73ja7Sh/bmgyPScdlkHmEQ9a92WDVWQdHVinJpHa
PFDu+htGA1dZmonjVzyPIlcZYx6USxz4xyqJcMyHvzs90o/YualCsMGEf059fhf6
p9egpRoRNevLRfLc0zFqrXDIR1eE8XeAxvoxU75aLQCwFs5FEuZ/zSj+eWhZoHUD
h2JZ7jlrdoEbxmCwC5fXa2MgL2sHvda9m1yIysAzhL50lio03F3iqGnE1YslC7bR
6RsLhdiDp5VzeTM2tPSwil731E8DbBiMnPD+tffDZWGPAmXtZvWgBOrtT1bJtI0m
R5NMGj6JPZr5UeI9F5bn3HRqT/+e+4pQiPDyToZlI+9sjXRGoJ/PAuAHcyyXAN/C
QmFNgkip83wcqng1LgBgexE8DYbtljmp3aSo1PO4XVGOoMD69yxyIdjynI5diSa+
35cfbyLizm8ezSjmzx0kPrXttfzhWR+/LCJaOHwl9Vk+OdxCnzrcwmNZmK3EMwDH
hLLRouZkNFkuWoUC5ZpjSIMF5piH2M9Jpy7D2uBIrZsIeIv2jWXGoyO4OEeDPrZC
/waZrsPSiiYv2rYjrqcj
=qy1U
-----END PGP SIGNATURE-----



More information about the Pkg-grub-devel mailing list