From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 0473D1381FB for ; Wed, 26 Dec 2012 20:50:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 04C8621C0A0; Wed, 26 Dec 2012 20:49:47 +0000 (UTC) Received: from mail-qc0-f170.google.com (mail-qc0-f170.google.com [209.85.216.170]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5DFDB21C014 for ; Wed, 26 Dec 2012 20:48:39 +0000 (UTC) Received: by mail-qc0-f170.google.com with SMTP id d42so4686004qca.29 for ; Wed, 26 Dec 2012 12:48:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Lt6x7K8giwpL8EYScOp0qxvBnV6J8vpU/VdjK5ALrng=; b=uxcJWH1fzd0IUOU6kKY37gPNRfL39rzVM6pWFI1FBwLO2NKUCfSiE+raqWvREwC2xG hbUFSumVUC84aq3ME1gr8HeU3RcPSOBzNDCHc61eNxVPBSjbuuOlMYTO2e9k6Hvi9FAC D0DwQ+n4h9ki4qc1WD9MGwn2ntDX5Y9kE41CqPIhuYV4G7F9Oh8sn2Q0uEa/pSmWq2A/ 09xi5rrrLMv5ML891zsgx/bnp2SEGpqVmwypRQDuW6Op1DQ+i2wOXF7Mya8dpC93Uh+r ubF7kuq6a0jg42/pDn/aqJK0gdaEibtigl7uZ1Ki+qqDyWiM+rv8VMrxb4x7WTnqinOm bkhg== Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.224.185.138 with SMTP id co10mr13397926qab.97.1356554918501; Wed, 26 Dec 2012 12:48:38 -0800 (PST) Received: by 10.229.186.132 with HTTP; Wed, 26 Dec 2012 12:48:38 -0800 (PST) In-Reply-To: <20121226170926.6a67f4a9@digimed.co.uk> References: <20121226170926.6a67f4a9@digimed.co.uk> Date: Wed, 26 Dec 2012 12:48:38 -0800 Message-ID: Subject: Re: [gentoo-user] Building an initramfs into the kernel From: Mark Knecht To: Gentoo User Content-Type: text/plain; charset=UTF-8 X-Archives-Salt: e9e52208-12f5-42e6-a7b6-2ba7ed6a0676 X-Archives-Hash: f938ed95c61d86e2883b616d48a2be97 On Wed, Dec 26, 2012 at 9:09 AM, Neil Bothwick wrote: > On Wed, 26 Dec 2012 07:58:34 -0800, Mark Knecht wrote: > >> 2) Contained executables, as I understand them, either need to be >> built with the static flag or you have to include all the libraries. >> Static seems simpler so (in my case) should I rebuild mdadm & >> e2fsprogs with +static? (I don't currently use lvm or any crypt stuff) > > Yes. > I've done that, played a bit with ldd to see the changes, etc., and it seems to make sense. On the mdadm list one comment came up which was to make sure my mdadm.conf file was up to date and then include it in the initramfs image so that if for some reason the machine doesn't boot I have all the info required to start the RAIDs by hand. I thought that was a good comment. > > Most of it is debug stuff that I haven't used since I first started using > it. OK, it's a good example of a more complete init script so that's helpful. Thanks! One other question came up. So I build the kernel, and the kernel build creates the initramfs image and embeds it in the kernel. Is there a tool that would allow me to query the embedded image prior to booting so that I can check that everything is in there that I think should be in there? Scanning around online I found discussion about lsinitramfs but I haven't found it in portage yet. dracut has lsinitrd. genkernel doesn't have anything like it. And even if I found it I think it only works for stand alone initramfs files. Thanks, Mark