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 1RW9jM-00044s-49 for garchives@archives.gentoo.org; Thu, 01 Dec 2011 16:43:28 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EC93021C04A; Thu, 1 Dec 2011 16:43:12 +0000 (UTC) Received: from mail-bw0-f53.google.com (mail-bw0-f53.google.com [209.85.214.53]) by pigeon.gentoo.org (Postfix) with ESMTP id A753321C04A for ; Thu, 1 Dec 2011 16:41:51 +0000 (UTC) Received: by bkbzu5 with SMTP id zu5so1187016bkb.40 for ; Thu, 01 Dec 2011 08:41:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=kSqIcGj4NDRZSFwx2FrrP/tefzrcXs4d3NIduAojfeU=; b=O0c+4l+DeM7yKQeXsTZyJIKH/sBaqsRfQsKk5ACsnsPintrPkDh8Hh+gzMkzQX3qjW LwsKas/Le96muZfye3Kv7+oMGIFIH5WyIIRClWKQxRzUA/V2rTchOkR94hpstP0ofrO8 4+Ak6KS6+Fhg14D8I1mF5byX6D1UhXIPRf1Xo= 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.204.154.25 with SMTP id m25mr7982343bkw.140.1322757710800; Thu, 01 Dec 2011 08:41:50 -0800 (PST) Received: by 10.204.14.7 with HTTP; Thu, 1 Dec 2011 08:41:50 -0800 (PST) In-Reply-To: <20111201012312.385dcf5c@memphis.local> References: <20111130152753.176a9a08@hactar.digimed.co.uk> <4ED67664.1060302@gmail.com> <20111130202828.34f30c74@karnak.local> <20111130214733.19888eb1@digimed.co.uk> <20111130220735.5105ba14@karnak.local> <20111130232656.45b21f47@digimed.co.uk> <20111201002706.5a77f2fd@karnak.local> <20111201012312.385dcf5c@memphis.local> Date: Thu, 1 Dec 2011 11:41:50 -0500 Message-ID: Subject: Re: [gentoo-user] Re: Full disk encryption From: Michael Mol To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 4a1f8e1d-4861-4023-903b-4d19c4ca93d3 X-Archives-Hash: 4ffd2a54b02501701b3eac5824ba6645 On Wed, Nov 30, 2011 at 8:23 PM, David W Noon wrote: > On Wed, 30 Nov 2011 19:39:11 -0500, Michael Mol wrote about "Re: > [gentoo-user] Re: Full disk encryption": > > [snip] >>Stupid question...Would using LZMA and a tarball reduce the size of >>your initeamfs? > > Not really. =C2=A0I am already using gzip -9, and binaries don't compress > especially well. =C2=A0Moreover, the archiver *must* be cpio, not tar. I don't understand initrd that well, but I understand you run an init-type script inside it. My thought was: 1) Include enough in your cpio blob to extract a .tar.xz file. Even better if you can use a self-extracting, statically-linked LZMAball. 2) launch a second-stage init sequence from the subsequently-extracted data= . Large groups of binaries can compress pretty well, but, obviously, it depends greatly on the data in question. Also, wasn't there an ELF-specific compressor making the rounds a few months ago? And I take it there are no existing tools to take a dynamically-linked binary, pack in all the pulled-in files, rewrite symbol tables to include only the symbols used, pull the thing all into a single now-statically-linked binary, and perform something like COMDAT folding to remove duplicate functions? It would seem possible, at least. --=20 :wq