Gentoo Archives: gentoo-user

From: Michael Mol <mikemol@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: Full disk encryption
Date: Thu, 01 Dec 2011 00:42:23
Message-Id: CA+czFiCR-9Y2mtN6bzJo_4aE_Vhks5nGDNTQ9cTXYt8gXeGsvQ@mail.gmail.com
In Reply to: Re: [gentoo-user] Re: Full disk encryption by David W Noon
1 Stupid question...Would using LZMA and a tarball reduce the size of your
2 initeamfs?
3
4 ZZ
5 On Nov 30, 2011 7:30 PM, "David W Noon" <dwnoon@××××××××.com> wrote:
6
7 > On Wed, 30 Nov 2011 23:26:56 +0000, Neil Bothwick wrote about Re:
8 > [gentoo-user] Re: Full disk encryption:
9 >
10 > > On Wed, 30 Nov 2011 22:07:35 +0000, David W Noon wrote:
11 > >
12 > > > > Why do you need e2fsprogs on an initramfs?
13 > > >
14 > > > One needs e2fsck to do a "preen" prior to mounting the required
15 > > > volume(s).
16 > >
17 > > Why not mount root read-only, just like in a non-initramfs system?
18 > >
19 > > Any e2fsck commands will be run during the boot runlevel, before
20 > > remounting root rw.
21 >
22 > Unfortunately, the system does not work that way. When running inside
23 > an initramfs, one cannot load executable content from mount points --
24 > only from within the initramfs. So, while it is perfectly possible to
25 > do "ls /mnt/root/sbin/e2fsck" (assuming the root partition has been
26 > mounted ro as /mnt/root), it is not possible to load and execute that
27 > program. [And, yes, I have adjusted the PATH and LD_LIBRARY_PATH shell
28 > variables to address the program and library directories on the mounted
29 > root partition.] After performing a switch_root to the actual root
30 > partition, this restriction is lifted.
31 >
32 > When running without (or with the default) initramfs, the root
33 > partition itself becomes the active filesystem, so loading programs
34 > from /sbin or /bin and libraries from /lib works as expected.
35 >
36 > This might be one of Dale's problems, if he was trying to use commands
37 > from the root filesystem within the initramfs.
38 > --
39 > Regards,
40 >
41 > Dave [RLU #314465]
42 > *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
43 > dwnoon@××××××××.com (David W Noon)
44 > *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
45 >

Replies

Subject Author
Re: [gentoo-user] Re: Full disk encryption David W Noon <dwnoon@××××××××.com>