[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.LFD.2.03.1309151434580.7830@erqung.pbz>
Date: Sun, 15 Sep 2013 14:49:05 +0530 (IST)
From: P J P <ppandit@...hat.com>
To: linux-kernel@...r.kernel.org
Subject: [PATCH 2/2] Export initial ramdisk compression config
Hello,
While building the 3.11 kernel recently, I bumped into this issue.
Menuconfig allows one to choose compression format of an initial ramdisk
image. But this selection does not result in creation of a duly compressed
initramfs image. Because - $ make install - does not pass on the selected
compression option to dracut(8) tool, which generates the initramfs file. This
leads to a situation wherein the initramfs file is gzip(1) compressed, but the
kernel knows only to decompress the user's chosen compression format.
The attached patch herein, attempts to fix this issue by exporting the
compression configuration option to an environment variable of a sub-shell
spawned by Make(1) with the invocation of installkernel(8) during the
installation process.
The dracut(8) & new-kernel-pkg(8) tools need to be patched to recognise and
read such an environment variable and use the selected compression algorithm
while creating the initial ramdisk image files.
Could someone please review this one too?
Thank you.
--
Prasad J Pandit / Red Hat Security Response Team
DB7A 84C5 D3F9 7CD1 B5EB C939 D048 7860 3655 602B
View attachment "0002-Export-initial-ramdisk-compression-config-option.patch" of type "TEXT/PLAIN" (2507 bytes)
Powered by blists - more mailing lists