grub/grub-core/loader
Andrei Borzenkov a8c473288d loader/linux: do not pad initrd with zeroes at the end
Syslinux memdisk is using initrd image and needs to know uncompressed
size in advance. For gzip uncompressed size is at the end of compressed
stream. Grub padded each input file to 4 bytes at the end, which means
syslinux got wrong size.

Linux initramfs loader apparently does not care about trailing alignment.
So change code to align beginning of each file instead which atomatically
gives us the correct size for single file.

Reported-By: David Shaw <dshaw@jabberwocky.com>
2015-05-07 20:24:24 +03:00
..
arm Use full initializer for initrd_ctx to avoid fatal warnings with older GCC 2014-10-14 20:12:15 +04:00
arm64 arm64: Export useful functions from linux.c 2015-05-07 15:11:04 +02:00
efi Declare GRUB_EFI_VENDOR_APPLE_GUID. 2013-12-24 14:14:19 +01:00
i386 linux.c: Ensure that initrd is page-aligned. 2015-05-07 16:23:39 +02:00
ia64/efi Use full initializer for initrd_ctx to avoid fatal warnings with older GCC 2014-10-14 20:12:15 +04:00
mips Use full initializer for initrd_ctx to avoid fatal warnings with older GCC 2014-10-14 20:12:15 +04:00
powerpc/ieee1275 Use full initializer for initrd_ctx to avoid fatal warnings with older GCC 2014-10-14 20:12:15 +04:00
sparc64/ieee1275 Add missing grub_ prefix in memcpy invocation 2015-02-23 22:29:33 +01:00
aout.c Implement automatic module license checking according to new GNU 2011-04-11 23:01:51 +02:00
linux.c loader/linux: do not pad initrd with zeroes at the end 2015-05-07 20:24:24 +03:00
lzss.c Add LZSS Mach-O support (needed for new xnu kernelcache). 2012-02-29 13:26:13 +01:00
macho.c Add missing license section in macbless.mod and macho.mod. 2013-12-18 17:11:11 +01:00
macho32.c * grub-core/loader/machoXX.c: Fix compilation on non-i386. 2013-12-17 22:44:46 +01:00
macho64.c * grub-core/loader/machoXX.c: Fix compilation on non-i386. 2013-12-17 22:44:46 +01:00
machoXX.c Simplify few strings. 2013-05-07 11:44:15 +02:00
multiboot.c Implement multiboot2 EFI BS specification. 2013-12-13 12:56:14 +01:00
multiboot_elfxx.c * grub-core/loader/multiboot.c: Add support for multiboot kernels 2013-10-28 15:23:46 +01:00
multiboot_mbi2.c multiboot2: Fix information request tag size calculation 2015-02-14 19:26:04 +03:00
xnu.c loader/xnu: fix memory leak. 2015-01-27 22:12:06 +03:00
xnu_resume.c * grub-core/loader/xnu_resume.c (grub_xnu_resume): Reject empty images. 2013-10-28 14:25:22 +01:00