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 1RW2Jx-0001oB-K2 for garchives@archives.gentoo.org; Thu, 01 Dec 2011 08:48:45 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5567421C059; Thu, 1 Dec 2011 08:48:36 +0000 (UTC) Received: from mail.digimed.co.uk (82-69-83-178.dsl.in-addr.zen.co.uk [82.69.83.178]) by pigeon.gentoo.org (Postfix) with ESMTP id A7C0221C023 for ; Thu, 1 Dec 2011 08:47:25 +0000 (UTC) Received: from hactar.digimed.co.uk (hactar.digimed.co.uk [192.168.1.3]) by mail.digimed.co.uk (Postfix) with ESMTPSA id BD7F68030E for ; Thu, 1 Dec 2011 08:47:24 +0000 (GMT) Date: Thu, 1 Dec 2011 08:47:27 +0000 From: Neil Bothwick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: Full disk encryption Message-ID: <20111201084727.3076a3a9@hactar.digimed.co.uk> In-Reply-To: <20111201002706.5a77f2fd@karnak.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> Organization: Digital Media Production X-Mailer: Claws Mail 3.7.10cvs103 (GTK+ 2.24.8; x86_64-pc-linux-gnu) X-GPG-Fingerprint: 7260 0F33 97EC 2F1E 7667 FE37 BA6E 1A97 4375 1903 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: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/5I/qK91HInliwnrcLH8fMC2"; protocol="application/pgp-signature" X-Archives-Salt: 95f200e4-0f8f-4221-84ed-aa82fe0c77ab X-Archives-Hash: 03a52d997d9243bf359f62e2f714f13d --Sig_/5I/qK91HInliwnrcLH8fMC2 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Thu, 1 Dec 2011 00:27:06 +0000, David W Noon wrote: > > Why not mount root read-only, just like in a non-initramfs system? > >=20 > > Any e2fsck commands will be run during the boot runlevel, before > > remounting root rw. =20 >=20 > Unfortunately, the system does not work that way. When running inside > an initramfs, one cannot load executable content from mount points -- > only from within the initramfs. So, while it is perfectly possible to > do "ls /mnt/root/sbin/e2fsck" (assuming the root partition has been > mounted ro as /mnt/root), it is not possible to load and execute that > program. [And, yes, I have adjusted the PATH and LD_LIBRARY_PATH shell > variables to address the program and library directories on the mounted > root partition.] After performing a switch_root to the actual root > partition, this restriction is lifted. I understand that, but not why you need to run e2fsck before the switch_root. Is this to do with the way your system is set up? The object of the initramfs is only to get the system into a state where / can be mounted and switch_root run, I assume you are trying to do more than that with it. --=20 Neil Bothwick WORM: (n.) acronym for Write Once, Read Mangled. Used to describe a normally-functioning computer disk of the very latest design. --Sig_/5I/qK91HInliwnrcLH8fMC2 Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) iEYEARECAAYFAk7XPyQACgkQum4al0N1GQOQRQCdGikxD575BAHMFN1+/qSDHQCF MYsAoNmBrTwt83H9syYSIHGOfknnOdac =VPiB -----END PGP SIGNATURE----- --Sig_/5I/qK91HInliwnrcLH8fMC2--