FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 07-13-2011, 04:53 PM
Will Woods
 
Default Use xz compression on initrd.img, add back gfx firmware (#703914)

On Thu, 2011-07-07 at 13:32 -0400, David Cantrell wrote:
> Use xz compression on the initrd.img file
[...]
> + (cd $MBD_DIR; find . |cpio --quiet -c -o) |xz -9 > $MBD_FSIMAGE

This won't work, for two reasons:
1) If you're compressing initramfs with xz you *must* use the option
"--check=crc32" or the kernel won't be able to unpack it. (They also
recommend "--lzma2=dict=1MiB" but this isn't required.)
2) RHEL6-vintage kernels can't handle xz-compressed initramfs anyway.

However, they do lzma just fine, so this works:
[...] |xz -9 --format=lzma > $MBD_FSIMAGE
(I tested it in a VM to be sure).

File size difference from xz is negligible (4kb). I took the liberty of
fixing that line in rhel6-branch; hope that's OK.

-w

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 07:43 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org