From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RVwhy-0002Hp-A4 for garchives@archives.gentoo.org; Thu, 01 Dec 2011 02:49:10 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 45BB0E00C2; Thu, 1 Dec 2011 02:48:47 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 347BA21C04F for ; Thu, 1 Dec 2011 02:47:15 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id B57D11B400E for ; Thu, 1 Dec 2011 02:47:14 +0000 (UTC) X-Virus-Scanned: by amavisd-new using ClamAV at gentoo.org X-Spam-Flag: NO X-Spam-Score: -5.1 X-Spam-Level: X-Spam-Status: No, score=-5.1 tagged_above=-999 required=5.5 tests=[AWL=-0.599, BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001, NML_ADSP_CUSTOM_MED=0.9, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-1.201, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZYOkWedhOEBU for ; Thu, 1 Dec 2011 02:47:07 +0000 (UTC) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by smtp.gentoo.org (Postfix) with ESMTP id A6F101B4004 for ; Thu, 1 Dec 2011 02:47:06 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RVwfq-0004Tk-LK for gentoo-user@gentoo.org; Thu, 01 Dec 2011 03:46:59 +0100 Received: from cpe-76-183-217-112.tx.res.rr.com ([76.183.217.112]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 01 Dec 2011 03:46:58 +0100 Received: from ftn768 by cpe-76-183-217-112.tx.res.rr.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 01 Dec 2011 03:46:58 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Jack Byer Subject: [gentoo-user] Re: Re: Full disk encryption Date: Wed, 30 Nov 2011 20:46:44 -0600 Message-ID: References: <20111130152753.176a9a08@hactar.digimed.co.uk> <4ED67664.1060302@gmail.com> <20111130202828.34f30c74@karnak.local> 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 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cpe-76-183-217-112.tx.res.rr.com User-Agent: KNode/4.7.3 X-Archives-Salt: cf444932-d334-46bd-9bc8-98e11ff2c46d X-Archives-Hash: 2fa5c469595b175621d27d1e2371631d David W Noon wrote: > I have a working initramfs layout, but currently it is too large > (>32MiB) for my /boot partition. The problem package is e2fsprogs, as > it requires dynamic linkage and, consequently, a full-sized glibc. > This sucks, so I need to patch the Makefile(s) to build a more sensible > set of executables for an initramfs. > > All of the code I have written myself compiles and links statically, > typically using klibc, so my finished code is tiny. > > I haven't been working on this for a couple of months now, because the > need for it is not really pressing. The assertion that udev would > require /usr and /var (plus the kitchen sink) really soon is unfounded, > at least for those of us who run more elderly hardware. > > Anyhow, when I'm finished there will be a zsh script that will build an > initramfs image, and even install it to /boot, with a single command. When I made my own initramfs I was operating under the "RAM and disk space are cheap" assumption and did it the easiest way possible: I included the *entirety* of /etc, /bin, /lib{32,64} and /sbin Then I wrote a small bash script for /init Throw the kernel and initramfs on a USB stick, install GRUB on said USB stick and call it a day. If anything breaks, well I've got all the command like repair tools included so it's no big deal to fix as long as the bash script sends me to a command line if it has any problems.