lkml.org 
[lkml]   [2013]   [Sep]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/2] Fix NULL pointer dereference while loading initramfs

Hello Rob,

+-- On Mon, 23 Sep 2013, Rob Landley wrote --+
| I've been building kernels, including with initramfs, and I don't have
| dracut(8) installed? In today's git:

dracut(8) is a separate tool installed from package dracut.

-> dracut-029-2.fc19.x86_64
-> https://dracut.wiki.kernel.org/


| I've been messing with this area and maight be interested if I had any idea
| what this guy was talking about?

Kernel menuconfig selects gzip(1) as a default compression format for the
initial ramdisk image.

$ make menuconfig
-> General setup
-> Support initial ramdisk compressed using ...

If instead of gzip(1), you select bzip2(1) or xz(1) format and build a new
kernel, the initramfs image would still be compressed with gzip(1), because
currently there is no way to pass the selected compression format to dracut(8)
via $ make install.

# file /boot/initramfs-3.11.0.img
/boot/initramfs-3.11.0.img: LZMA compressed data, streamed

It shows LZMA because I've patched /sbin/new-kernel-pkg to use
$INITRD_COMPRESS variable.

Thank you.
--
Prasad J Pandit / Red Hat Security Response Team
DB7A 84C5 D3F9 7CD1 B5EB C939 D048 7860 3655 602B


\
 
 \ /
  Last update: 2013-09-24 21:21    [W:0.063 / U:1.524 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site